diff options
author | G. Paul Ziemba <paulz@labn.net> | 2018-05-26 16:05:42 +0200 |
---|---|---|
committer | G. Paul Ziemba <paulz@labn.net> | 2018-05-26 16:05:42 +0200 |
commit | 21a16cc2a3c94eb8e0025a396c3f3b7effa0249a (patch) | |
tree | b0dc9a223154ad9ab398fc3d1a726ea2887cb0e3 /bgpd | |
parent | zebra: Add a breadcrumb for when we ignore a route (diff) | |
download | frr-21a16cc2a3c94eb8e0025a396c3f3b7effa0249a.tar.xz frr-21a16cc2a3c94eb8e0025a396c3f3b7effa0249a.zip |
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 <paulz@labn.net>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |