summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-04-24 19:33:41 +0200
committerDavid Lamparter <equinox@diac24.net>2019-08-30 19:22:23 +0200
commited18356f1f2deef5ed564fad6897a84b282ba992 (patch)
treed4a2a89b27d7ec82852939be386b483e9ca0d747 /lib/command.c
parent0ba4eeec2208d9290d090ae6a086f74cd24a6865 (diff)
bgpd/bmp: BMP implementation
This implements BMP. There's no fine-grained history here, the non-BMP preparations are already split out from here so all that remains is BMP proper. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 9dabc2af7e..d4c35a80d5 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -151,6 +151,7 @@ const char *node_names[] = {
"bfd peer", /* BFD_PEER_NODE */
"openfabric", // OPENFABRIC_NODE
"vrrp", /* VRRP_NODE */
+ "bmp", /* BMP_NODE */
};
/* clang-format on */
@@ -975,6 +976,7 @@ enum node_type node_parent(enum node_type node)
case BGP_IPV6M_NODE:
case BGP_EVPN_NODE:
case BGP_IPV6L_NODE:
+ case BMP_NODE:
ret = BGP_NODE;
break;
case BGP_EVPN_VNI_NODE:
@@ -1491,6 +1493,7 @@ void cmd_exit(struct vty *vty)
case BGP_IPV6M_NODE:
case BGP_EVPN_NODE:
case BGP_IPV6L_NODE:
+ case BMP_NODE:
vty->node = BGP_NODE;
break;
case BGP_EVPN_VNI_NODE: