Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Add docker test for ipvlan #861

@amshinde

Description

@amshinde

Once kata-containers/runtime#852 lands, we need to test ipvlan plugin for docker.
To test with ipvlan plugin in l2 mode:

$ docker network  create  -d ipvlan \
   --subnet=10.54.10.0/24 \
     -o ipvlan_mode=l2 \
     ipvlan2

$ docker run --rm -itd --runtime=kata-runtime --network ipvlan2  --ip=10.54.10.2 --name ipvlan2_1 --rm --runtime=runc debian

$ docker run --rm -itd --runtime=kata-runtime --network ipvlan2  --ip=10.54.10.3 --name ipvlan2_2 --rm --runtime=runc debian

Make sure container ipvlan2_1 can ping ipvlan2_2

Once the agent PR lands which fixes ipvlan in l3 mode (kata-containers/agent#404), , we need to test with ipvlan l3 mode:

$ docker network  create  -d ipvlan \
   --subnet=10.54.20.0/24 \
     -o ipvlan_mode=l3 \
     ipvlan3

$ docker run --rm -itd --runtime=kata-runtime --network ipvlan3  --ip=10.54.20.2 --name ipvlan3_1 --rm --runtime=runc debian

$ docker run --rm -itd --runtime=kata-runtime --network ipvlan3  --ip=10.54.20.3 --name ipvlan3_2 --rm --runtime=runc debian

As before, we need to check that the containers can ping each other.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions