summaryrefslogtreecommitdiff
path: root/src/conf_mode/containers.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-24 10:17:18 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-24 10:17:18 +0200
commit10ab1acc801df73b2dfee1f2cfd059424d8894d5 (patch)
treeb224496186c123d6701ebce69b7029daf130fc08 /src/conf_mode/containers.py
parentf3ff81f4f31cd3ecb5d648caff674663943db42f (diff)
downloadvyos-1x-10ab1acc801df73b2dfee1f2cfd059424d8894d5.tar.gz
vyos-1x-10ab1acc801df73b2dfee1f2cfd059424d8894d5.zip
container: T3769: disable bridge "hairpinMode" mode
After commit 209ce3d9 ("container: T3769: when container networks are used, always bridge the networks") IP masquerading (NAT) was disabled. No need to keep the haipin flag.
Diffstat (limited to 'src/conf_mode/containers.py')
-rwxr-xr-xsrc/conf_mode/containers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/containers.py b/src/conf_mode/containers.py
index 78664dfd9..85fc14015 100755
--- a/src/conf_mode/containers.py
+++ b/src/conf_mode/containers.py
@@ -222,6 +222,8 @@ def apply(container):
for count in range(0, len(config['plugins'])):
if 'ipMasq' in config['plugins'][count]:
config['plugins'][count]['ipMasq'] = False
+ if 'hairpinMode' in config['plugins'][count]:
+ config['plugins'][count]['hairpinMode'] = False
write_file(cni_network_config, json.dumps(config, indent=4))