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:
Antonio Murdaca 2017-08-31 11:19:13 +02:00
parent 2ac2832686
commit 5947698818
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
5 changed files with 42 additions and 46 deletions

View file

@ -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