def __init__(self, resources, values, loader_context=None): Group.__init__(self, resources, values, loader_context) ResourcesContainer.__init__(self, resources) self.interface = getFirst(self.objects).interface self.parent = self.interface self.allow_child = False self.type = GROUP_RESTYPE
def __init__(self, resources, parent, interface, attr, loader_context=None): ResourcesContainer.__init__(self, resources) self.type = self.TYPE # Resource type self.parent = parent # Resource self.interface = interface # InterfaceResource self.children = [] # list of Resource Object.__init__(self, attr, loader_context)
def checkResource(self, new_resource, loader_context=None): ResourcesContainer.checkResource(self, new_resource, loader_context) assert isinstance(new_resource, InterfaceResource) or isinstance(new_resource, FirewallResource)
def __init__(self, ruleset): ObjectDict.__init__(self, ruleset) ResourcesContainer.__init__(self, self, ruleset)