Network-only key function. Returns an object that identifies this address' network and netmask. This function is a suitable "key" argument for sorted() and list.sort().
(self)
| 909 | return 0 |
| 910 | |
| 911 | def _get_networks_key(self): |
| 912 | """Network-only key function. |
| 913 | |
| 914 | Returns an object that identifies this address' network and |
| 915 | netmask. This function is a suitable "key" argument for sorted() |
| 916 | and list.sort(). |
| 917 | |
| 918 | """ |
| 919 | return (self.version, self.network_address, self.netmask) |
| 920 | |
| 921 | def subnets(self, prefixlen_diff=1, new_prefix=None): |
| 922 | """The subnets which join to make the current subnet. |
no outgoing calls