From 10ab1acc801df73b2dfee1f2cfd059424d8894d5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 24 Aug 2021 10:17:18 +0200 Subject: 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. --- src/conf_mode/containers.py | 2 ++ 1 file changed, 2 insertions(+) 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)) -- cgit v1.2.3