Lines Matching refs:new_prefix
517 .. method:: subnets(prefixlen_diff=1, new_prefix=None)
521 length should be increased by. *new_prefix* is the desired new
523 only one of *prefixlen_diff* and *new_prefix* must be set. Returns an
531 … >>> list(ip_network('192.0.2.0/24').subnets(new_prefix=26)) #doctest: +NORMALIZE_WHITESPACE
534 >>> list(ip_network('192.0.2.0/24').subnets(new_prefix=23))
539 >>> list(ip_network('192.0.2.0/24').subnets(new_prefix=25))
542 .. method:: supernet(prefixlen_diff=1, new_prefix=None)
546 should be decreased by. *new_prefix* is the desired new prefix of
548 of *prefixlen_diff* and *new_prefix* must be set. Returns a single
555 >>> ip_network('192.0.2.0/24').supernet(new_prefix=20)
662 .. method:: subnets(prefixlen_diff=1, new_prefix=None)
663 .. method:: supernet(prefixlen_diff=1, new_prefix=None)