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>
This commit is contained in:
G. Paul Ziemba 2018-05-26 07:05:42 -07:00
parent 6ab5222f78
commit 21a16cc2a3

View 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 */