MCPcopy Index your code
hub / github.com/retspen/webvirtcloud / net

Method net

vrtManager/IPy.py:713–721  ·  view source on GitHub ↗

Return the base (first) address of a network as an IP object. The same as IP[0]. >>> IP('10.0.0.0/8').net() IP('10.0.0.0')

(self)

Source from the content-addressed store, hash-verified

711 """Class for handling IP addresses and networks."""
712
713 def net(self):
714 """Return the base (first) address of a network as an IP object.
715
716 The same as IP[0].
717
718 >>> IP('10.0.0.0/8').net()
719 IP('10.0.0.0')
720 """
721 return IP(IPint.net(self), ipversion=self._ipversion)
722
723 def broadcast(self):
724 """Return the broadcast (last) address of a network as an IP object.

Callers

nothing calls this directly

Calls 1

IPClass · 0.85

Tested by

no test coverage detected