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

Method get_ipv4

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

Source from the content-addressed store, hash-verified

90 return None
91
92 def get_ipv4(self):
93 xml = self._XMLDesc()
94 int_ipv4_ip = util.get_xml_path(xml, "/interface/protocol/ip/@address")
95 int_ipv4_mask = util.get_xml_path(xml, "/interface/protocol/ip/@prefix")
96 if not int_ipv4_ip or not int_ipv4_mask:
97 return None
98 else:
99 return int_ipv4_ip + '/' + int_ipv4_mask
100
101 def get_ipv6_type(self):
102 try:

Callers 1

interfaceFunction · 0.80

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected