def calc_dhcp_scope_name(self):
        try:
            return self.keyvalue_set.get(key='dhcp_scope').value
        except NetworkKeyValue.DoesNotExist:
            pass

        if self.vlan and self.site:
            # Grab the end of the full site name (usually the dc)
            scope_name = self.site.full_name.split('.')[-1]
            # If releng is in the site name, we need to add that to the scope
            if 'releng' in self.site.full_name:
                scope_name += '-releng'

            scope_name += "-vlan{0}".format(self.vlan.number)

            if Truth.objects.filter(name=scope_name).exists():
                return scope_name

        return None
Runs a2enmod for the given mod.
dataset/ETHPy150Open mozilla/inventory/core/network/models.py/Network.calc_dhcp_scope_name--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/deb_apache.py/a2enmod