Add OpenFlow10 to protocols for backwards compatability
We need to add OpenFlow10 to the required protocols to support
backwards compatibility with neutron's destroy_patch_ports.
Closes-Bug: #1892491
Change-Id: I6865787f4d0b0459ac2eb91c0f1da9c08b36dd8d
(cherry picked from commit 3220e4e5e3
)
This commit is contained in:
parent
bd6fb6d166
commit
acfad8257e
|
@ -160,11 +160,11 @@ def set_openflow_version_on_bridges(module, bridges=None):
|
||||||
bridges = ['br-int']
|
bridges = ['br-int']
|
||||||
for bridge in bridges:
|
for bridge in bridges:
|
||||||
cmd = ['ovs-vsctl', 'set', 'bridge', bridge,
|
cmd = ['ovs-vsctl', 'set', 'bridge', bridge,
|
||||||
'protocols=OpenFlow13,OpenFlow15']
|
'protocols=OpenFlow10,OpenFlow13,OpenFlow15']
|
||||||
rc, out, err = module.run_command(cmd)
|
rc, out, err = module.run_command(cmd)
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
module.warn('Cannot set OpenFlow13 and OpenFlow15 '
|
module.warn('Cannot set new OpenFlow protocols on a bridge: '
|
||||||
'protocol on a bridge: %s: %s.' %
|
'%s: %s.' %
|
||||||
(bridge, to_native(err)))
|
(bridge, to_native(err)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue