示例#1
0
文件: vif.py 项目: hsluoyz/patron
 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
文件: vif.py 项目: hsluoyz/patron
 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])