Skip to content

Commit

Permalink
Fix OVSBridge.set_protocols arg
Browse files Browse the repository at this point in the history
For native ovsdb_interface compatibility, use a list instead of
a comma separated string for set_protocols argument.  The native
interface failed silently.

Change-Id: Idc6fce9f943b2fe64f668bcfaf9ed40fcf47034c
Closes-Bug: 1597613
(cherry picked from commit ce644b8)
  • Loading branch information
toshiiw authored and booxter committed Jul 25, 2016
1 parent 9ad13f4 commit b0d16a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions neutron/agent/linux/openvswitch_firewall/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ def update_members(self, sg_id, members):


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

Expand Down
3 changes: 1 addition & 2 deletions neutron/cmd/sanity/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0d16a0

Please sign in to comment.