def link_base_network(self, name):
    base_networks = self.base_networks
    if (name not in base_networks):
        raise AnsibleError("Please define a base networks for network link '{}' in 'base_networks' variable in 'master.yml'".format(name))
    return base_networks[name]
def link_base_network(self, name):
    base_networks = self.base_networks
    if (name not in base_networks):
        raise AnsibleError("Please define a base networks for network link '{}' in 'base_networks' variable in 'master.yml'".format(name))
    return base_networks[name]