diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-10 09:16:01 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-22 16:50:08 +0200 |
commit | 09e2a362a32e646d9ab0206d79a7e5ff9980eaeb (patch) | |
tree | ae6466bfb40f5dc1aaa1906d5b2b0c4e26baa959 /lib/routemap_cli.c | |
parent | bgpd: Print IPv6 extended communities for `show bgp <prefix>` (diff) | |
download | frr-09e2a362a32e646d9ab0206d79a7e5ff9980eaeb.tar.xz frr-09e2a362a32e646d9ab0206d79a7e5ff9980eaeb.zip |
bgpd: Implement draft-li-idr-link-bandwidth-ext-01
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/routemap_cli.c')
-rw-r--r-- | lib/routemap_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index 88b341cac..a12a07c14 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -1252,14 +1252,14 @@ void route_map_action_show(struct vty *vty, const struct lyd_node *dnode, } else if (IS_SET_EXTCOMMUNITY_LB(action)) { enum ecommunity_lb_type lb_type; char str[VTY_BUFSIZ]; - uint16_t bandwidth; + uint32_t bandwidth; lb_type = yang_dnode_get_enum( dnode, "./rmap-set-action/frr-bgp-route-map:extcommunity-lb/lb-type"); switch (lb_type) { case EXPLICIT_BANDWIDTH: - bandwidth = yang_dnode_get_uint16( + bandwidth = yang_dnode_get_uint32( dnode, "./rmap-set-action/frr-bgp-route-map:extcommunity-lb/bandwidth"); snprintf(str, sizeof(str), "%d", bandwidth); |