Skip to content

Commit

Permalink
Add unicode to use with ip_address
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederson Brilhante committed Apr 17, 2018
1 parent 59fad63 commit b78b489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networkapi/plugins/F5/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def trata_param_vip(vips):
if vip_request['ipv4'] else vip_request['ipv6']['ip_formated']

vip_filter['name'] = port['identifier']
address = str(ipaddress.ip_address(address))
address = str(ipaddress.ip_address(unicode(address)))
vip_filter['address'] = address
vip_filter['port'] = port['port']
vip_filter['optionsvip'] = vip_request['options']
Expand Down Expand Up @@ -423,7 +423,7 @@ def trata_param_vip(vips):

vip_cache_filter['pool'] = None
vip_cache_filter['name'] = port['identifier']
address = str(ipaddress.ip_address(address))
address = str(ipaddress.ip_address(unicode(address)))
vip_cache_filter['address'] = address
vip_cache_filter['port'] = port['port']

Expand Down

0 comments on commit b78b489

Please sign in to comment.