Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

XML file examples

The following table lists a few vRouter hot-plugging scenarios. For each scenario, this table shows the contents of the corresponding sample XML file.

Table 1. Sample hot-plugging XML files
Hot-plugging Scenario Description
XML file for hot-plugging a network interface and connecting it to the net300 network. A PCI slot is not specified.
Note: The net300 network is created using virt-manager.
<interface type='network'>
   <mac address='52:54:00:ff:ff:ff'/> 
   <source network='net300'/> 
   <model type='virtio'/>
 </interface>

XML file for hot-plugging a network interface into the tenth PCI slot.

<interface type='network'> 
   <mac address='52:54:00:ff:ff:ff'/>
   <address type='pci' domain='0x0000' bus='0x00' slot='0x0a'/>   
   <source network='net300'/>
   <model type='virtio'/>
</interface>

XML file for hot-plugging a network interface and connecting it to a Spirent interface. A PCI slot is not specified.

<interface type='bridge'>
   <mac address='52:54:00:15:d6:bd'/>
   <source bridge='br2'/>
   <model type='virtio'/>
</interface>

XML file for hot-plugging a management interface. A PCI slot is not specified.

<interface type='direct'>
   <mac address='52:54:00:d2:87:1d'/>
   <source dev='em1' mode='bridge'/>
   <model type='virtio'/>
</interface>

XML file for hot-plugging a management interface. The interface is to be hot-plugged into the third PCI slot.

<interface type='direct'>
   <mac address='52:54:00:d2:87:1d'/>
   <source dev='em1' mode='bridge'/>
   <model type='virtio'/>
   <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>