Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created November 12, 2012 05:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save scottslowe/4057683 to your computer and use it in GitHub Desktop.
Save scottslowe/4057683 to your computer and use it in GitHub Desktop.
Network XML definition for libvirt-OVS integration
<network>
<name>ovs-network</name>
<forward mode='bridge'/>
<bridge name='ovsbr0'/>
<virtualport type='openvswitch'/>
<portgroup name='vlan-01' default='yes'>
</portgroup>
<portgroup name='vlan-02'>
<vlan>
<tag id='2'/>
</vlan>
</portgroup>
<portgroup name='vlan-03'>
<vlan>
<tag id='3'/>
</vlan>
</portgroup>
<portgroup name='vlan-all'>
<vlan trunk='yes'>
<tag id='2'/>
<tag id='3'/>
</vlan>
</portgroup>
</network>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment