diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-08-03 11:02:49 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-08-03 14:38:53 +0300 | 
| commit | 71bdae66b2c105302f7af9fc0c1deb657e2418d9 (patch) | |
| tree | 82d433082f3a66e9c1a283c4289fb3af3a334802 /bgpd/bgp_ecommunity.h | |
| parent | 04cfc0a3a8b10ad3f8c9faeb9f649515b7b42171 (diff) | |
bgpd: Keep extcommunity bandwidth commands persistent in route-maps
~/frr# vtysh -c 'conf' -c 'route-map testas permit 10' -c 'set extcommunity bandwidth 321'
~/frr# vtysh -c 'show route-map testas' | grep 321
    extcommunity bandwidth 321 non-transitive
~/frr# vtysh -c 'sh run' | grep 321
~/frr#
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_ecommunity.h')
| -rw-r--r-- | bgpd/bgp_ecommunity.h | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h index 03b23fcd37..a9dc2aeaa1 100644 --- a/bgpd/bgp_ecommunity.h +++ b/bgpd/bgp_ecommunity.h @@ -151,6 +151,12 @@ struct ecommunity_val_ipv6 {  	char val[IPV6_ECOMMUNITY_SIZE];  }; +enum ecommunity_lb_type { +	EXPLICIT_BANDWIDTH, +	CUMULATIVE_BANDWIDTH, +	COMPUTED_BANDWIDTH +}; +  #define ecom_length_size(X, Y)    ((X)->size * (Y))  /*  | 
