Take into account that MTU isn't constant in case of VXLAN

MTU of ovs bridge "br-int" changes when virtual iface
for instance is created. It behavior breaks the check
that gets difference between network interfaces
before and after vm booting

Change-Id: I294bc309e8b13a912994a2cf20140e08120d5bbe
Closes-Bug: 1674620
This commit is contained in:
Sergey Novikov 2017-03-22 15:59:29 +04:00
parent 8667ad5a92
commit be5872064d
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class CheckOVSFirewall(TestBasic):
server = os_conn.create_server_for_migration(label=net_name) server = os_conn.create_server_for_migration(label=net_name)
current_ifaces = self.get_ifaces(compute_ip) current_ifaces = self.get_ifaces(compute_ip)
current_flows = self.get_flows(compute_ip) current_flows = self.get_flows(compute_ip)
assert_equal(len(set(current_ifaces.stdout) - set(ifaces.stdout)), 1, assert_equal(len(current_ifaces.stdout) - len(ifaces.stdout), 1,
"Check is failed. Passed data is not equal:" "Check is failed:"
" {}\n\n{}".format(ifaces, current_ifaces)) " {}\n\n{}".format(ifaces, current_ifaces))
assert_not_equal(set(flows.stdout), set(current_flows.stdout), assert_not_equal(set(flows.stdout), set(current_flows.stdout),
"Check is failed. Passed data is equal:" "Check is failed. Passed data is equal:"