Merge "Fix OVSBridge.set_protocols arg" into stable/mitaka
This commit is contained in:
commit
df7bf3b1fe
|
@ -163,13 +163,13 @@ class SGPortMap(object):
|
|||
|
||||
|
||||
class OVSFirewallDriver(firewall.FirewallDriver):
|
||||
REQUIRED_PROTOCOLS = ",".join([
|
||||
REQUIRED_PROTOCOLS = [
|
||||
ovs_consts.OPENFLOW10,
|
||||
ovs_consts.OPENFLOW11,
|
||||
ovs_consts.OPENFLOW12,
|
||||
ovs_consts.OPENFLOW13,
|
||||
ovs_consts.OPENFLOW14,
|
||||
])
|
||||
]
|
||||
|
||||
provides_arp_spoofing_protection = True
|
||||
|
||||
|
|
|
@ -338,8 +338,7 @@ def ovs_conntrack_supported():
|
|||
|
||||
with ovs_lib.OVSBridge(br_name) as br:
|
||||
try:
|
||||
br.set_protocols(
|
||||
"OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14")
|
||||
br.set_protocols(["OpenFlow%d" % i for i in range(10, 15)])
|
||||
except RuntimeError as e:
|
||||
LOG.debug("Exception while checking ovs conntrack support: %s", e)
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue