SR-IOV mechanism driver in networking_powervm/plugins/ml2/drivers/ mech_pvm_sriov.PvmSRIOVMechanismDriver does not include 'physical network' in the custom vif details. Method customize_vif_details prepares a dictionary like this : {'redundancy': 1, 'physical_ports': [u'U78C9.001.WZS05TG-P1-C5-T1'], 'vlan': '2200', 'port_filter': False, 'capacity': 0.02} It does not include physical_network. This is not a bug, but SR-IOV vif plug mechanism in nova_powervm/virt/powervm/vif.PvmVnicSriovVifDriver.plug can use physical_network value to calculate physical ports in migration scenario (future work in nova_powervm). Above mentioned plug mechanism currently uses get_physical_network method in nova/network/model.VIF class. This method expects physical_network in custom vif details prepared by mechanism driver. This patchset fixes this by adding physical_network to vif details by getting it from network segment. Unit tests added. Change-Id: I379c9deceb72e4d5ea17891120d065230578d59e Closes-Bug: #1651129changes/58/412458/2
parent
a5f5fccdc0
commit
e64928fd16
Loading…
Reference in new issue