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

Method broadcast

vrtManager/IPy.py:723–731  ·  view source on GitHub ↗

Return the broadcast (last) address of a network as an IP object. The same as IP[-1]. >>> IP('10.0.0.0/8').broadcast() IP('10.255.255.255')

(self)

Source from the content-addressed store, hash-verified

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.
725
726 The same as IP[-1].
727
728 >>> IP('10.0.0.0/8').broadcast()
729 IP('10.255.255.255')
730 """
731 return IP(IPint.broadcast(self))
732
733 def netmask(self):
734 """Return netmask as an IP object.

Callers 1

__init__Method · 0.45

Calls 1

IPClass · 0.85

Tested by

no test coverage detected