Skip to content

Commit 8b39d3f

Browse files
committed
confd: explicitly declare cni backends
- the port-mapping plugin supports iptables or nftables - the firewall plugin support only iptables or firewalld Enforce use of iptables wrapper for nftables, for now, in both plugins. This all needs to be refactored to run podman with "unmanaged" networks in the future. Related to issue #1125 Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 66a5e53 commit 8b39d3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/confd/src/cni.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,15 @@ static int cni_bridge(struct lyd_node *net, const char *ifname)
250250
" },\n" /* /bridge */
251251
" {\n"
252252
" \"type\": \"portmap\",\n"
253+
" \"backend\": \"iptables\",\n"
254+
" \"snat\": true,\n"
253255
" \"capabilities\": {\n"
254256
" \"portMappings\": true\n"
255257
" }\n"
256258
" },\n" /* /portmap */
257259
" {\n"
258-
" \"type\": \"firewall\"\n"
260+
" \"type\": \"firewall\",\n"
261+
" \"backend\": \"iptables\"\n"
259262
" },\n" /* /firewall */
260263
" {\n"
261264
" \"type\": \"tuning\"\n"

0 commit comments

Comments
 (0)