MCPcopy
hub / github.com/retspen/webvirtcloud / get_ipv6

Method get_ipv6

vrtManager/interface.py:112–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 return None
111
112 def get_ipv6(self):
113 xml = self._XMLDesc()
114 int_ipv6_ip = util.get_xml_path(xml, "/interface/protocol[2]/ip/@address")
115 int_ipv6_mask = util.get_xml_path(xml, "/interface/protocol[2]/ip/@prefix")
116 if not int_ipv6_ip or not int_ipv6_mask:
117 return None
118 else:
119 return int_ipv6_ip + '/' + int_ipv6_mask
120
121 def get_bridge(self):
122 if self.get_type() == 'bridge':

Callers 1

interfaceFunction · 0.80

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected