Fix router< handling of origin field
This commit is contained in:
parent
5309ffbf4c
commit
0902781626
2
router
2
router
|
@ -62,7 +62,7 @@
|
||||||
(cmp (compose - route-pref))
|
(cmp (compose - route-pref))
|
||||||
(cmp (lambda (x) (if (route-self-origin? x) 0 1)))
|
(cmp (lambda (x) (if (route-self-origin? x) 0 1)))
|
||||||
(cmp (compose length route-as-path))
|
(cmp (compose length route-as-path))
|
||||||
(cmp (lambda (x) (match (route-origin x) ['IGP 3] ['EGP 2] ['UNK 1])))
|
(cmp (lambda (x) (match (route-origin x) ['IGP 1] ['EGP 2] ['UNK 3])))
|
||||||
(cmp route-nexthop)
|
(cmp route-nexthop)
|
||||||
(error "your router is angery...")))
|
(error "your router is angery...")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue