Last active
July 3, 2018 10:57
-
-
Save fabiand/dc974f1c2705bf7cc647b13c3cd443bf to your computer and use it in GitHub Desktop.
vlan/bridge DP
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
Pod VM VM VM | |
| | | | |
| | | | |
| +-----+ | | |
---------+-+--------------+-------------- | |
| | | | |
br0 br1 br2 | |
| | | | |
DP vlan0 vlan1 vlan2 | |
\ | / | |
\ | / | |
\ | / | |
\|/ | |
------------------+---------------------- | |
| | |
Host eth0 |
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
kind: Pod | |
spec: | |
containers: | |
- name: compute | |
image: virt-launcher | |
resources: | |
limits: | |
vlan-bridge.dp.io/vlan0: 1 |
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
kind: VM | |
spec: | |
devices: | |
interfaces: | |
- name: red | |
direct: {} # Conection/binding | |
networks: | |
- name: red | |
resource: | |
withIp: false | |
# The following two lines are needefd to find the interface inside te pod which gives us access to that requested resource | |
ifnameEnvVar: "VB_DP_IO_IFNAME_VLAN0" | |
ifnameGlobEnvVar: "*_VLAN0" | |
name: vlan-bridge.dp.io/vlan0 | |
- name: blue | |
multus: | |
networkName: blue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment