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
This commit is contained in:
Brent Eagles 2020-08-20 15:59:42 -02:30 committed by Alex Schultz
parent 7c90153dda
commit 3220e4e5e3
1 changed files with 3 additions and 3 deletions

View File

@ -160,11 +160,11 @@ def set_openflow_version_on_bridges(module, bridges=None):
bridges = ['br-int']
for bridge in bridges:
cmd = ['ovs-vsctl', 'set', 'bridge', bridge,
'protocols=OpenFlow13,OpenFlow15']
'protocols=OpenFlow10,OpenFlow13,OpenFlow15']
rc, out, err = module.run_command(cmd)
if rc != 0:
module.warn('Cannot set OpenFlow13 and OpenFlow15 '
'protocol on a bridge: %s: %s.' %
module.warn('Cannot set new OpenFlow protocols on a bridge: '
'%s: %s.' %
(bridge, to_native(err)))