Fix passing vtep fields to neutron
Neutron uses folling fields [0]
* vtep-logical-switch
* vtep-physical-switch
Fix key name that we pass, replace '_' with '-'
[0] 196b2c9874/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py (L376)
Closes-Bug: #2105492
Change-Id: I7735bce5ce9a91979ec1b561c4047952123735ce
This commit is contained in:
parent
f25b095825
commit
d2fb4cbc49
@ -319,11 +319,11 @@ def add_ports_to_network(task, network_uuid, security_groups=None):
|
||||
# Determine if network type is OVN
|
||||
if is_ovn_vtep_port(ironic_port):
|
||||
vtep_logical_switch = \
|
||||
portmap[ironic_port.uuid]['vtep_logical_switch']
|
||||
portmap[ironic_port.uuid]['vtep-logical-switch']
|
||||
vtep_physical_switch = \
|
||||
portmap[ironic_port.uuid]['vtep_physical_switch']
|
||||
binding_profile['vtep_logical_switch'] = vtep_logical_switch
|
||||
binding_profile['vtep_physical_switch'] = vtep_physical_switch
|
||||
portmap[ironic_port.uuid]['vtep-physical-switch']
|
||||
binding_profile['vtep-logical-switch'] = vtep_logical_switch
|
||||
binding_profile['vtep-physical-switch'] = vtep_physical_switch
|
||||
|
||||
update_port_attrs['binding:profile'] = binding_profile
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user