Merge pull request #2301 from LabNConsulting/working/master/bgpd-issue-2263-no-label-auto

bgpd: issue 2263: fix "no label vpn export auto"
This commit is contained in:
Russ White 2018-05-27 10:51:43 -04:00 committed by GitHub
commit bbc1a1d6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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