Created
April 13, 2017 20:18
-
-
Save mcastelino/f03c2594930303a2f15b8e7559b54977 to your computer and use it in GitHub Desktop.
Plugin Chaining - veth-tap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cniVersion": "0.3.0", | |
"name": "mynet", | |
"plugins": [ | |
{ | |
"type": "bridge", | |
"bridge": "cni0" | |
}, | |
{ | |
"type": "veth", | |
"bridge": "cni0", | |
"isGateway": true, | |
"ipMasq": true, | |
"ipam": { | |
"type": "host-local", | |
"subnet": "10.22.0.0/16", | |
"routes": [ | |
{ "dst": "0.0.0.0/0" } | |
] | |
}, | |
"runtimeConfig": { | |
"configureVM": false | |
} | |
}, | |
{ | |
"type": "tap", | |
"bridge": "cni0", | |
"isGateway": true, | |
"ipMasq": true, | |
"ipam": { | |
"type": "host-local", | |
"subnet": "10.22.0.0/16", | |
"routes": [ | |
{ "dst": "0.0.0.0/0" } | |
] | |
}, | |
"runtimeConfig": { | |
"configureVM": false | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment