V2T migration: fix api-repaly for ipv6 subnets
Change-Id: Ie967b2d0925141892a42a72c7d6d4da06230958a
This commit is contained in:
parent
60bf3f42ca
commit
4c0f3c9a00
|
@ -260,6 +260,11 @@ class PrepareObjectForMigration(object):
|
||||||
for field in v6_fields_to_remove:
|
for field in v6_fields_to_remove:
|
||||||
if field in body:
|
if field in body:
|
||||||
body.pop(field)
|
body.pop(field)
|
||||||
|
else:
|
||||||
|
# For ipv6 mode - remove those only if empty
|
||||||
|
for field in v6_fields_to_remove:
|
||||||
|
if field in body and body[field] is None:
|
||||||
|
body.pop(field)
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def prepare_port(self, port, remove_qos=False, direct_call=False):
|
def prepare_port(self, port, remove_qos=False, direct_call=False):
|
||||||
|
|
Loading…
Reference in New Issue