From 21a16cc2a3c94eb8e0025a396c3f3b7effa0249a Mon Sep 17 00:00:00 2001 From: "G. Paul Ziemba" Date: Sat, 26 May 2018 07:05:42 -0700 Subject: bgpd: issue 2263: fix "no label vpn export auto" This command should unset the label (instead of wrongly setting to "auto") Signed-off-by: G. Paul Ziemba --- bgpd/bgp_vty.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bgpd') diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index a81a83edd..257adda3f 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -6311,6 +6311,10 @@ DEFPY (af_label_vpn_export, if (argv_find(argv, argc, "no", &idx)) yes = 0; + /* If "no ...", squash trailing parameter */ + if (!yes) + label_auto = NULL; + if (yes) { if (!label_auto) label = label_val; /* parser should force unsigned */ -- cgit v1.2.3