diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-19 02:45:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 02:45:57 +0200 |
commit | 3e461df2eaaa1d293128ffeb7abfde4f7b023845 (patch) | |
tree | 34d05422688cc3d805733945aaaf9d4346bd5e52 /bgpd/bgp_route.c | |
parent | Merge pull request #4495 from donaldsharp/pim_debug_expiry (diff) | |
parent | bgpd: Added the as-set option for IPV6 agg. route (diff) | |
download | frr-3e461df2eaaa1d293128ffeb7abfde4f7b023845.tar.xz frr-3e461df2eaaa1d293128ffeb7abfde4f7b023845.zip |
Merge pull request #4260 from vishaldhingra/lcomm
bgpd: Added the as-set option for IPV6 agg. route
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index ae1821c43..4ae018698 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6532,28 +6532,38 @@ DEFUN (no_aggregate_address_mask, DEFUN (ipv6_aggregate_address, ipv6_aggregate_address_cmd, - "aggregate-address X:X::X:X/M [summary-only]", + "aggregate-address X:X::X:X/M [<as-set [summary-only]|summary-only [as-set]>]", "Configure BGP aggregate entries\n" "Aggregate prefix\n" - "Filter more specific routes from updates\n") + "Generate AS set path information\n" + "Filter more specific routes from updates\n" + "Filter more specific routes from updates\n" + "Generate AS set path information\n") { int idx = 0; argv_find(argv, argc, "X:X::X:X/M", &idx); char *prefix = argv[idx]->arg; + int as_set = + argv_find(argv, argc, "as-set", &idx) ? AGGREGATE_AS_SET : 0; + + idx = 0; int sum_only = argv_find(argv, argc, "summary-only", &idx) ? AGGREGATE_SUMMARY_ONLY : 0; return bgp_aggregate_set(vty, prefix, AFI_IP6, SAFI_UNICAST, sum_only, - 0); + as_set); } DEFUN (no_ipv6_aggregate_address, no_ipv6_aggregate_address_cmd, - "no aggregate-address X:X::X:X/M [summary-only]", + "no aggregate-address X:X::X:X/M [<as-set [summary-only]|summary-only [as-set]>]", NO_STR "Configure BGP aggregate entries\n" "Aggregate prefix\n" - "Filter more specific routes from updates\n") + "Generate AS set path information\n" + "Filter more specific routes from updates\n" + "Filter more specific routes from updates\n" + "Generate AS set path information\n") { int idx = 0; argv_find(argv, argc, "X:X::X:X/M", &idx); |