def convert_cidr(cidr):
 ret = {'network': None, 'netmask': None}
 cidr = calc_net(cidr)
 network_info = salt.ext.ipaddress.ip_network(cidr)
 ret['network'] = str(network_info.network_address)
 ret['netmask'] = str(network_info.netmask)
 return ret

def convert_cidr ( cidr ) : ret = { 'network' : None , 'netmask' : None } cidr = calc_net ( cidr ) network_info = salt . ext . ipaddress . ip_network ( cidr ) ret [ 'network' ] = str ( network_info . network_address ) ret [ 'netmask' ] = str ( network_info . netmask ) return ret
returns the network and subnet mask of a cidr addr .