summaryrefslogtreecommitdiff
path: root/zebra/zebra_script.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-27 07:57:43 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-10-27 08:53:43 -0400
commitcbefb650bcacbe2cec6beeccba993df3e42066b8 (patch)
tree31e356a50e23420d783070666574e04f254200e0 /zebra/zebra_script.c
parentf1506cf36b91014d920f82bbfe655651a2356141 (diff)
zebra: Recent Merge broke --enable-werror
Recent code broke upon compiling with --enable-dev-build and --enable-werror. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_script.c')
-rw-r--r--zebra/zebra_script.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zebra/zebra_script.c b/zebra/zebra_script.c
index 574a1c37d7..0e19376abe 100644
--- a/zebra/zebra_script.c
+++ b/zebra/zebra_script.c
@@ -256,7 +256,7 @@ void lua_pushzebra_dplane_ctx(lua_State *L, const struct zebra_dplane_ctx *ctx)
lua_setfield(L, -2, "rule");
break;
case DPLANE_OP_IPTABLE_ADD:
- case DPLANE_OP_IPTABLE_DELETE:
+ case DPLANE_OP_IPTABLE_DELETE: {
struct zebra_pbr_iptable iptable;
dplane_ctx_get_pbr_iptable(ctx, &iptable);
@@ -300,10 +300,11 @@ void lua_pushzebra_dplane_ctx(lua_State *L, const struct zebra_dplane_ctx *ctx)
}
lua_setfield(L, -2, "iptable");
break;
+ }
case DPLANE_OP_IPSET_ADD:
case DPLANE_OP_IPSET_DELETE:
case DPLANE_OP_IPSET_ENTRY_ADD:
- case DPLANE_OP_IPSET_ENTRY_DELETE:
+ case DPLANE_OP_IPSET_ENTRY_DELETE: {
struct zebra_pbr_ipset ipset;
dplane_ctx_get_pbr_ipset(ctx, &ipset);
@@ -325,8 +326,11 @@ void lua_pushzebra_dplane_ctx(lua_State *L, const struct zebra_dplane_ctx *ctx)
}
lua_setfield(L, -2, "ipset");
break;
+ }
case DPLANE_OP_ADDR_INSTALL:
case DPLANE_OP_ADDR_UNINSTALL:
+ case DPLANE_OP_INTF_ADDR_ADD:
+ case DPLANE_OP_INTF_ADDR_DEL:
break;
case DPLANE_OP_NEIGH_INSTALL:
case DPLANE_OP_NEIGH_UPDATE:
@@ -409,6 +413,7 @@ void lua_pushzebra_dplane_ctx(lua_State *L, const struct zebra_dplane_ctx *ctx)
}
lua_setfield(L, -2, "gre");
case DPLANE_OP_NONE:
+ break;
} /* Dispatch by op code */
}