Skip to content

Commit e72b61e

Browse files
author
Salvatore Orlando
committed
CS-14900:
CS-14902: Fixing ovs-vif-flows.py for avoiding it kicks in with exp backoff timeouts if ovs is not running Also removing unnecessary copies of the same script
1 parent 07cbec9 commit e72b61e

3 files changed

Lines changed: 6 additions & 176 deletions

File tree

scripts/vm/hypervisor/xenserver/ovs-vif-flows.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ def apply_flows(bridge, this_vif_ofport, vif_ofports):
4141
def main(command, vif_raw):
4242
if command not in ('online', 'offline'):
4343
return
44-
# TODO (very important)
45-
# Quit immediately if networking is NOT being managed by the OVS tunnel manager
44+
# Make sure the networking stack is not linux bridge!
45+
net_stack = pluginlib.do_cmd(['cat', '/etc/xensource/network.conf'])
46+
if net_stack.lower() == "bridge":
47+
# Nothing to do here!
48+
return
49+
4650
vif_name, dom_id, vif_index = vif_raw.split('-')
4751
# validate vif and dom-id
4852
this_vif = "%s%s.%s" % (vif_name, dom_id, vif_index)

scripts/vm/hypervisor/xenserver/xenserver56fp1/ovs-vif-flows.py

Lines changed: 0 additions & 95 deletions
This file was deleted.

scripts/vm/hypervisor/xenserver/xenserver60/ovs-vif-flows.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)