def closest_parent(self):
        self.ensure_client()
        site = getattr(self.client.sites(self['site_id']), self.resource_name)
        cidr = '%s/%s' % (self['network_address'], self['prefix_length'])
        try:
            lookup = get_result(site(cidr).closest_parent.get())
            return Network(raw=lookup)
        except Exception as e:
            self.log_error(e)
            return {}
Rejects configuration if hostname mapping is invalid.
dataset/ETHPy150Open dropbox/pynsot/pynsot/models.py/Network.closest_parent--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/ClusterConfigurationTests.test_environment_hostname_mapping_not_object