def __init__(self, component): Attribute.__init__(self, component) self._tempdir = self.io().mktempdir("xii-" + self.component_entity())
def validate_settings(self): Attribute.validate_settings(self) if self._get_mode() not in ['nat', 'route']: raise error.DefError("Unknown network mode '{}'".format(self._get_mode()))