snar / bgpq3

bgpq3
BSD 2-Clause "Simplified" License
363 stars 53 forks source link

Clarify Nokia (classic CLI) options #53

Closed mfisher128 closed 4 years ago

mfisher128 commented 5 years ago

Could you clarify the Nokia classic CLI (-N) allowed option combinations?

While it is correct that aggregation and refine (-ARr) are not compatible with Nokia classic CLI [ip|ipv6]-prefix-list, they should be supported with standard prefix-lists.

In other words, only the -E flag is incompatible with -ARr for Nokia classic CLI (-N).

Valid: ./bgpq3 -h localhost -36AN -R 128 -l foo AS8218 prefix-list "foo" prefix 2001:67c:25a8::/48 prefix-length-range 48-128 prefix 2001:1b48::/32 prefix-length-range 32-128 ...

Invalid: ./bgpq3 -h localhost -36AEN -R 128 -l foo AS8218

Cli help text for standard prefix-list: *A:sr7-1.eth>config>router>policy-options>prefix-list# prefix

Thanks!

hellt commented 4 years ago

that is correct, prefix length ranges are supported for prefix-list in classic CLI, as well as in the MD-CLI as follows:

A:admin@VSR# compare
+   prefix 1.0.0.0/24 type range {
+       start-length 12
+       end-length 16
+   }

/cc @snar

snar commented 4 years ago

Corrected:

./bgpq3 -36AN -R 128 -l foo AS8218 configure router policy-options begin no prefix-list "foo" prefix-list "foo" prefix 2001:67c:25a8::/48 prefix-length-range 48-128 prefix 2001:1b48::/32 prefix-length-range 32-128 prefix 2a00:1f60::/32 prefix-length-range 32-128