Пример #1
0
 def unplug_hw_veb(self, instance, vif):
     if vif['vnic_type'] == network_model.VNIC_TYPE_MACVTAP:
         # The ip utility doesn't accept the MAC 00:00:00:00:00:00.
         # Therefore, keep the MAC unchanged.  Later operations on
         # the same VF will not be affected by the existing MAC.
         linux_net.set_vf_interface_vlan(vif['profile']['pci_slot'],
                                         mac_addr=vif['address'])
Пример #2
0
 def unplug_hw_veb(self, instance, vif):
     if vif['vnic_type'] == network_model.VNIC_TYPE_MACVTAP:
         # The ip utility doesn't accept the MAC 00:00:00:00:00:00.
         # Therefore, keep the MAC unchanged.  Later operations on
         # the same VF will not be affected by the existing MAC.
         linux_net.set_vf_interface_vlan(vif['profile']['pci_slot'],
                                         mac_addr=vif['address'])
Пример #3
0
 def plug_hw_veb(self, instance, vif):
     if vif['vnic_type'] == network_model.VNIC_TYPE_MACVTAP:
         linux_net.set_vf_interface_vlan(
             vif['profile']['pci_slot'],
             mac_addr=vif['address'],
             vlan=vif['details'][network_model.VIF_DETAILS_VLAN])
Пример #4
0
 def plug_hw_veb(self, instance, vif):
     if vif['vnic_type'] == network_model.VNIC_TYPE_MACVTAP:
         linux_net.set_vf_interface_vlan(
             vif['profile']['pci_slot'],
             mac_addr=vif['address'],
             vlan=vif['details'][network_model.VIF_DETAILS_VLAN])