test: replace bash CNI plugin with a custom bridge
Because we need a working CNI plugin to setup a correct netns so sandbox_run can grab a working IP address. Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
2ac2832686
commit
5947698818
5 changed files with 42 additions and 46 deletions
|
@ -407,8 +407,18 @@ function prepare_plugin_test_args_network_conf() {
|
|||
cat >$CRIO_CNI_CONFIG/10-plugin-test-args.conf <<-EOF
|
||||
{
|
||||
"cniVersion": "0.2.0",
|
||||
"name": "crionet",
|
||||
"type": "plugin_test_args.bash"
|
||||
"name": "crionet_test_args",
|
||||
"type": "bridge-custom",
|
||||
"bridge": "cni0",
|
||||
"isGateway": true,
|
||||
"ipMasq": true,
|
||||
"ipam": {
|
||||
"type": "host-local",
|
||||
"subnet": "$1",
|
||||
"routes": [
|
||||
{ "dst": "0.0.0.0/0" }
|
||||
]
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue