Tempest: Device driver does not allow Change of MAC address when interface is UP

- When inetrface is UP, device driver does not allow to change
MAC address
- Fixed bug 1832992

Change-Id: I538828d7a546b640b428e882033d03aff085cee9
This commit is contained in:
Devang Doshi 2017-03-17 13:42:45 -07:00
parent c76464dac3
commit 782ff5af41
1 changed files with 2 additions and 0 deletions

View File

@ -184,8 +184,10 @@ class TestAllowedAddressPair(manager.NetworkScenarioTest):
ip_address))
def _assign_mac_address(self, ssh_source, interface_name, mac_address):
ssh_source.exec_command("sudo ifconfig %s down" % interface_name)
ssh_source.exec_command("sudo ip link set %s address %s" % (
interface_name, mac_address))
ssh_source.exec_command("sudo ifconfig %s up" % interface_name)
def _test_connectivity_between_allowed_adddress_pair_ports(self,
network_topo):