Remove the convert_to functionality

'convert_to_string' has been added to neutron-lib and apply for
firewall-rule[1], we can remove in neutron-fwaas.

[1] https://review.opendev.org/c/openstack/neutron-lib/+/486133

Change-Id: I73a92dee952654bffa20620ede134acb5b28f95d
This commit is contained in:
zhouhenglc 2022-06-03 14:49:21 +08:00
parent b7be99c147
commit d19b3c3717
1 changed files with 0 additions and 13 deletions

View File

@ -190,19 +190,6 @@ cfg.CONF.register_opts(default_fwg_rules_opts, 'default_fwg_rules')
cfg.CONF.register_opts(firewall_quota_opts, 'QUOTAS')
# TODO(Reedip): Remove the convert_to functionality after bug1706061 is fixed.
def convert_to_string(value):
if value is not None:
return str(value)
return None
firewall_v2.RESOURCE_ATTRIBUTE_MAP[api_const.FIREWALL_RULES][
'source_port']['convert_to'] = convert_to_string
firewall_v2.RESOURCE_ATTRIBUTE_MAP[api_const.FIREWALL_RULES][
'destination_port']['convert_to'] = convert_to_string
class Firewall_v2(extensions.APIExtensionDescriptor):
api_definition = firewall_v2