Skip to content

Commit 805ad0a

Browse files
OPENSTACK-2959: add device_owner for update_port_on_subnet
add device_owner for update_port_on_subnet, in order to reset device_owner for selfip port (if vtep/mac changed) and snat ip port.
1 parent e31192b commit 805ad0a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

f5lbaasdriver/v2/bigip/plugin_rpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ def update_port_on_subnet(
632632
self, context, port_id, port_name=None,
633633
subnet_id=None, mac_address=None,
634634
fixed_address_count=0,
635-
binding_profile=None
635+
binding_profile=None,
636+
device_owner=None
636637
):
637638
port = {'port': {}}
638639

@@ -651,6 +652,9 @@ def update_port_on_subnet(
651652
if binding_profile is not None:
652653
port['port']['binding:profile'] = binding_profile
653654

655+
if device_owner is not None:
656+
port['port']['device_owner'] = device_owner
657+
654658
if not port['port']:
655659
return
656660

0 commit comments

Comments
 (0)