mirror of
https://github.com/bgp/bgpq4.git
synced 2024-05-11 05:55:05 +00:00
Aggregation/Refine support for Nokia classic.
This commit is contained in:
7
CHANGES
7
CHANGES
@@ -1,3 +1,10 @@
|
||||
0.1.36-pre (2019-10-25):
|
||||
- minor documentation cleanup: bgpq3 supports much more vendors
|
||||
than just Cisco and Juniper. Copyright years updated.
|
||||
- Nokia SR OS "classic" actually supports aggregation and
|
||||
and more-specific filtering in prefix-lists. Thanks to mfisher128
|
||||
for reporting.
|
||||
|
||||
0.1.35 (2018-11-30):
|
||||
- initial support for Juniper route-filter-lists (JunOS 16.2+).
|
||||
- too large (>124bytes) sources list was not handled correctly.
|
||||
|
34
bgpq3.c
34
bgpq3.c
@@ -433,16 +433,24 @@ main(int argc, char* argv[])
|
||||
exit(1);
|
||||
};
|
||||
|
||||
if(aggregate && expander.vendor==V_NOKIA) {
|
||||
sx_report(SX_FATAL, "Sorry, aggregation (-A) is not supported on "
|
||||
"Nokia classic CLI (-N)\n");
|
||||
exit(1);
|
||||
};
|
||||
|
||||
if(aggregate && expander.vendor==V_NOKIA_MD &&
|
||||
if(aggregate && (expander.vendor==V_NOKIA_MD || expander.vendor==V_NOKIA) &&
|
||||
expander.generation!=T_PREFIXLIST) {
|
||||
sx_report(SX_FATAL, "Sorry, aggregation (-A) is not supported with "
|
||||
"match-lists (-E) on Nokia MD-CLI. You can try prefix-lists (-P) "
|
||||
"ip-prefix-lists (-E) on Nokia. You can try prefix-lists (-P) "
|
||||
"instead\n");
|
||||
exit(1);
|
||||
};
|
||||
if(refine && (expander.vendor==V_NOKIA_MD || expander.vendor==V_NOKIA) &&
|
||||
expander.generation!=T_PREFIXLIST) {
|
||||
sx_report(SX_FATAL, "Sorry, more-specifics (-R) is not supported with "
|
||||
"ip-prefix-lists (-E) on Nokia. You can try prefix-lists (-P) "
|
||||
"instead\n");
|
||||
exit(1);
|
||||
};
|
||||
if(refineLow && (expander.vendor==V_NOKIA_MD || expander.vendor==V_NOKIA) &&
|
||||
expander.generation!=T_PREFIXLIST) {
|
||||
sx_report(SX_FATAL, "Sorry, more-specifics (-r) is not supported with "
|
||||
"ip-prefix-lists (-E) on Nokia. You can try prefix-lists (-P) "
|
||||
"instead\n");
|
||||
exit(1);
|
||||
};
|
||||
@@ -506,16 +514,6 @@ main(int argc, char* argv[])
|
||||
};
|
||||
};
|
||||
|
||||
if(expander.vendor==V_NOKIA) {
|
||||
if(refine) {
|
||||
sx_report(SX_FATAL, "Sorry, more-specific filters (-R %u) "
|
||||
"not supported on Nokia classic CLI (-N)\n", refine);
|
||||
} else {
|
||||
sx_report(SX_FATAL, "Sorry, more-specific filters (-r %u) "
|
||||
"not supported on Nokia classic CLI (-N)\n", refineLow);
|
||||
};
|
||||
};
|
||||
|
||||
if(expander.generation<T_PREFIXLIST) {
|
||||
if(refine) {
|
||||
sx_report(SX_FATAL, "Sorry, more-specific filter (-R %u) "
|
||||
|
Reference in New Issue
Block a user