]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: issue 2263: fix "no label vpn export auto"
authorG. Paul Ziemba <paulz@labn.net>
Sat, 26 May 2018 14:05:42 +0000 (07:05 -0700)
committerG. Paul Ziemba <paulz@labn.net>
Sat, 26 May 2018 14:05:42 +0000 (07:05 -0700)
This command should unset the label (instead of wrongly
setting to "auto")

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
bgpd/bgp_vty.c

index a81a83edde331c8b4d2e054c9ed70052ed457212..257adda3f3f228dcffa4d670a473f6ea299e889a 100644 (file)
@@ -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 */