def __init__(self, junos, name=None, **kvargs): if name is None: # resource-manager Resource.__init__(self, junos, name, **kvargs) return self.rule = NatSrcRule(junos, M=self, parent=self) self._manages = ['rule'] Resource.__init__(self, junos, name, **kvargs)
def __init__(self, junos, name=None, **kvargs): if name is None: # resource-manager Resource.__init__(self, junos, name, **kvargs) return self.addr = ZoneAddrBookAddr(junos, parent=self) self.set = ZoneAddrBookSet(junos, parent=self) self._manages = ['addr', 'set'] Resource.__init__(self, junos, name, **kvargs)
def __init__(self, junos, name=None, **kvargs): if name is None: # resource-manager Resource.__init__(self, junos, name, **kvargs) return self.ifs = ZoneInterface(junos, parent=self) self.ab = ZoneAddrBook(junos, name, parent=self) self._manages = ['ifs', 'ab'] Resource.__init__(self, junos, name, **kvargs)
def __init__(self, junos, name=None, **kvargs): if name is None: # resource-manager Resource.__init__(self, junos, name, **kvargs) return # specific instance will manage policy rules self.rule = PolicyRule(junos, M=self, parent=self) self._manages = ['rule'] self._name_from_zone = name[0] self._name_to_zone = name[1] Resource.__init__(self, junos, name, **kvargs)