MCPcopy Create free account
hub / github.com/ceph/ceph / unwrap_ipv6

Function unwrap_ipv6

src/python-common/ceph/deployment/utils.py:28–32  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

26
27
28def unwrap_ipv6(address):
29 # type: (str) -> str
30 if address.startswith('[') and address.endswith(']'):
31 return address[1:-1]
32 return address
33
34
35def wrap_ipv6(address):

Callers 6

unwrap_testFunction · 0.90
parseMethod · 0.90
prepare_createMethod · 0.90
_add_hostMethod · 0.90
is_ipv6Function · 0.70
_ip_lookupFunction · 0.70

Calls

no outgoing calls

Tested by 1

unwrap_testFunction · 0.72