summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorBen Pilgrim <ben@pilgrim.me.uk>2024-04-09 20:05:14 +0100
committerNicolas Vollmar <nvo@scaling.ch>2024-06-10 10:32:19 +0200
commit717ea64e4c54a8be619ffc29c16c6203b29319dd (patch)
tree3c9dcb20e588617329d4300769f30bb831d0d425 /smoketest
parent82607438d6df5291c581d802c7a2a98eabe084ff (diff)
downloadvyos-1x-717ea64e4c54a8be619ffc29c16c6203b29319dd.tar.gz
vyos-1x-717ea64e4c54a8be619ffc29c16c6203b29319dd.zip
container: T6219: Add support for container sysctl / kernel parameters
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/config-tests/container-simple1
-rw-r--r--smoketest/configs/container-simple3
2 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/config-tests/container-simple b/smoketest/config-tests/container-simple
index cc80ef4cf..ced770421 100644
--- a/smoketest/config-tests/container-simple
+++ b/smoketest/config-tests/container-simple
@@ -11,3 +11,4 @@ set container name c02 allow-host-networks
set container name c02 allow-host-pid
set container name c02 capability 'sys-time'
set container name c02 image 'busybox:stable'
+set container name c02 kernel-parameter 'net.ipv4.conf.all.forwarding' value '1' \ No newline at end of file
diff --git a/smoketest/configs/container-simple b/smoketest/configs/container-simple
index 82983afb7..0585fed29 100644
--- a/smoketest/configs/container-simple
+++ b/smoketest/configs/container-simple
@@ -10,6 +10,9 @@ container {
allow-host-pid
cap-add sys-time
image busybox:stable
+ kernel-parameter "net.ipv4.ip_forward" {
+ value "1"
+ }
}
}
interfaces {