diff --git a/daemon/libnetwork/internal/nftables/incremental_update.nft.gotmpl b/daemon/libnetwork/internal/nftables/incremental_update.nft.gotmpl index 98c53240aa..e32d85cbec 100644 --- a/daemon/libnetwork/internal/nftables/incremental_update.nft.gotmpl +++ b/daemon/libnetwork/internal/nftables/incremental_update.nft.gotmpl @@ -34,7 +34,7 @@ table {{$family}} {{$tableName}} { } {{end}} {{range .Chains}}{{if .MustFlush}}chain {{.Name}} { - {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}}{{end}} + {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}};{{end}} } ; {{end}}{{end}} } {{if .MustFlush}}flush table {{$family}} {{$tableName}}{{end}} @@ -52,7 +52,7 @@ table {{$family}} {{$tableName}} { {{end}} table {{$family}} {{$tableName}} { {{range .Chains}}{{if .MustFlush}}chain {{.Name}} { - {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}}{{end}} + {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}};{{end}} {{range .Rules}}{{.}} {{end}} } diff --git a/daemon/libnetwork/internal/nftables/reload.nft.gotmpl b/daemon/libnetwork/internal/nftables/reload.nft.gotmpl index c48b067060..0f820b4b9a 100644 --- a/daemon/libnetwork/internal/nftables/reload.nft.gotmpl +++ b/daemon/libnetwork/internal/nftables/reload.nft.gotmpl @@ -33,7 +33,7 @@ table {{$family}} {{$tableName}} { } {{end}} {{range .Chains}}chain {{.Name}} { - {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}}{{end}} + {{if .ChainType}}type {{.ChainType}} hook {{.Hook}}{{if .Device}} device "{{.Device}}"{{end}} priority {{.Priority}}; policy {{.Policy}};{{end}} {{range .Rules}}{{.}} {{end}} }