vantage6.common.docker.network_manager.remove_subnet_mask#

remove_subnet_mask(ip)#

Remove the subnet mask of an ip address, e.g. 172.1.0.0/16 -> 172.1.0.0

Parameters:

ip (str) – IP subnet, potentially including a mask

Returns:

IP subnet address without the subnet mask

Return type:

str