Esempio n. 1
0
 def __init__(self, component):
     Attribute.__init__(self, component)
     self._tempdir = self.io().mktempdir("xii-" + self.component_entity())
Esempio n. 2
0
    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()))