Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
def
unwrap_ipv6(address):
29
# type: (str) -> str
30
if
address.startswith(
'['
) and address.endswith(
']'
):
31
return
address[1:-1]
32
return
address
33
34
35
def
wrap_ipv6(address):
Callers
6
unwrap_test
Function · 0.90
parse
Method · 0.90
prepare_create
Method · 0.90
_add_host
Method · 0.90
is_ipv6
Function · 0.70
_ip_lookup
Function · 0.70
Calls
no outgoing calls
Tested by
1
unwrap_test
Function · 0.72