Created
January 31, 2017 20:59
-
-
Save jcpowermac/86ac90bac402bd2d04059698a0ea7ed6 to your computer and use it in GitHub Desktop.
virsh net-update example openvswitch (ovs) portgroup
This file contains hidden or 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
| virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='trunk'><vlan trunk='yes'><tag id='2970'/><tag id='2971'/></vlan></portgroup>" --config --live | |
| virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='vlan-2979'><vlan><tag id='2979'/></vlan></portgroup>" --config --live |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case someone wants to update a whole section, the below command will be helpful. This will override the whole section, so it is important define again the previously created tags.
virsh net-update ovs-network modify --section portgroup --xml "<portgroup name='vlan-all' default='yes'><vlan trunk='yes'><tag id='98'/><tag id='104'/><tag id='105'/> \ <tag id='106'/><tag id='107'/><tag id='230'/><tag id='231'/><tag id='232'/><tag id='233'/>\ </vlan></portgroup>" --config --live