summaryrefslogtreecommitdiff
path: root/bgpd/rfapi/rfapi_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/rfapi/rfapi_vty.c')
-rw-r--r--bgpd/rfapi/rfapi_vty.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c
index 2062164890..d12958a600 100644
--- a/bgpd/rfapi/rfapi_vty.c
+++ b/bgpd/rfapi/rfapi_vty.c
@@ -478,7 +478,7 @@ rfapi_vty_out_vncinfo (
}
if (bi->extra != NULL)
- vty_out (vty, " label=%u", decode_label (bi->extra->tag));
+ vty_out (vty, " label=%u", decode_label (&bi->extra->label));
if (!rfapiGetVncLifetime (bi->attr, &lifetime))
{
@@ -1178,7 +1178,7 @@ rfapiPrintRemoteRegBi (
inet_ntop (pfx_vn.family, &pfx_vn.u.prefix, buf_ntop, BUFSIZ));
if (bi->extra)
{
- u_int32_t l = decode_label (bi->extra->tag);
+ u_int32_t l = decode_label (&bi->extra->label);
snprintf (buf_vn, BUFSIZ, "Label: %d", l);
}
else /* should never happen */
@@ -1305,7 +1305,7 @@ rfapiPrintRemoteRegBi (
}
if (tun_type != BGP_ENCAP_TYPE_MPLS && bi->extra)
{
- u_int32_t l = decode_label (bi->extra->tag);
+ u_int32_t l = decode_label (&bi->extra->label);
if (!MPLS_LABEL_IS_NULL (l))
{
fp (out, " Label: %d", l);
@@ -2672,8 +2672,7 @@ DEFUN (add_vnc_prefix_cost_life,
"Administrative cost [default: 255]\n"
"Administrative cost\n"
"Registration lifetime [default: infinite]\n"
- "Lifetime value in seconds\n"
- "[local-next-hop (A.B.C.D|X:X::X:X)] [local-cost <0-255>]\n")
+ "Lifetime value in seconds\n")
{
/* pfx vn un cost life */
return register_add (vty, argv[3], argv[5], argv[7], argv[9], argv[11],
@@ -2698,8 +2697,7 @@ DEFUN (add_vnc_prefix_life_cost,
"Registration lifetime [default: infinite]\n"
"Lifetime value in seconds\n"
"Administrative cost [default: 255]\n"
- "Administrative cost\n"
- "[local-next-hop (A.B.C.D|X:X::X:X)] [local-cost <0-255>]\n")
+ "Administrative cost\n")
{
/* pfx vn un cost life */
return register_add (vty, argv[3], argv[5], argv[7], argv[11], argv[9],
@@ -2722,8 +2720,7 @@ DEFUN (add_vnc_prefix_cost,
"UN IPv4 interface address\n"
"UN IPv6 interface address\n"
"Administrative cost [default: 255]\n"
- "Administrative cost\n"
- "[local-next-hop (A.B.C.D|X:X::X:X)] [local-cost <0-255>]\n")
+ "Administrative cost\n")
{
/* pfx vn un cost life */
return register_add (vty, argv[3], argv[5], argv[7], argv[9], NULL,
@@ -2746,8 +2743,7 @@ DEFUN (add_vnc_prefix_life,
"UN IPv4 interface address\n"
"UN IPv6 interface address\n"
"Registration lifetime [default: infinite]\n"
- "Lifetime value in seconds\n"
- "[local-next-hop (A.B.C.D|X:X::X:X)] [local-cost <0-255>]\n")
+ "Lifetime value in seconds\n")
{
/* pfx vn un cost life */
return register_add (vty, argv[3], argv[5], argv[7], NULL, argv[9],
@@ -2768,8 +2764,7 @@ DEFUN (add_vnc_prefix,
"VN IPv6 interface address\n"
"UN address of NVE\n"
"UN IPv4 interface address\n"
- "UN IPv6 interface address\n"
- "[local-next-hop (A.B.C.D|X:X::X:X)] [local-cost <0-255>]\n")
+ "UN IPv6 interface address\n")
{
/* pfx vn un cost life */
return register_add (vty, argv[3], argv[5], argv[7], NULL, NULL,
@@ -4064,7 +4059,6 @@ DEFUN (clear_vnc_mac_vn_un,
"VNI keyword\n"
"Any virtual network identifier\n"
"Virtual network identifier\n"
- "Virtual network identifier\n"
"VN address of NVE\n"
"All VN addresses\n"
"VN IPv4 interface address\n"