summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2023-07-21 14:41:07 +0200
committerG. Paul Ziemba <paulz@labn.net>2023-07-21 18:15:40 +0200
commit9835196ec9c6ac2f058b862c1a9f401723ffd583 (patch)
tree88498f471f767bbf144298cd03daae1220d9f0d5 /pbrd
parentMerge pull request #14034 from LabNConsulting/aceelindem/ospf_prefix_suppression (diff)
downloadfrr-9835196ec9c6ac2f058b862c1a9f401723ffd583.tar.xz
frr-9835196ec9c6ac2f058b862c1a9f401723ffd583.zip
pbrd: fix coverity issue
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c
index bc83c2d61..8e9673482 100644
--- a/pbrd/pbr_vty.c
+++ b/pbrd/pbr_vty.c
@@ -73,7 +73,7 @@ DEFPY(pbr_map_match_vlan_id, pbr_map_match_vlan_id_cmd,
/* clang-format off */
DEFPY(pbr_map_match_vlan_tag, pbr_map_match_vlan_tag_cmd,
- "[no] match vlan [<tagged|untagged|untagged-or-zero>$tag_type]",
+ "[no] match vlan ![<tagged|untagged|untagged-or-zero>$tag_type]",
NO_STR
"Match the rest of the command\n"
"Match based on VLAN tagging\n"
@@ -88,6 +88,7 @@ DEFPY(pbr_map_match_vlan_tag, pbr_map_match_vlan_tag_cmd,
return CMD_WARNING;
if (!no) {
+ assert(tag_type);
if (strmatch(tag_type, "tagged")) {
pbr_set_match_clause_for_vlan(pbrms, 0,
PBR_VLAN_FLAGS_TAGGED);