def __init__(self, name):
     SimpleType.__init__(self, name,
                         asa_gen_template='object-group network %(name)s');
     self.register_child(Description())
     self.register_child(DMList(name='host_ip_address',    child_class = HostObject,    asa_key = 'network-object host'))
     self.register_child(DMList(name='object_name',        child_class = ObjectObject,  asa_key = 'network-object object'))
     self.register_child(DMList(name='network_ip_address', child_class = NetworkObject, asa_key = 'network-object'))
     self.register_child(DMList(name='object_group_name',  child_class = GroupObject,   asa_key = 'group-object'))
 def __init__(self, name):
     SimpleType.__init__(self, name,
                         asa_gen_template='interface BVI%(bvi_id)s');
     self.register_child(IPv4Addr('ipv4_address'))
     self.register_child(DMList(name='ipv6_address_with_prefix', child_class=IPv6Addr, asa_key ='ipv6 address'))
     self.register_child(IPv6Enable('ipv6_enable'))
     self.register_child(IPv6NDDad('ipv6_nd_dad_attempts'))
     self.register_child(IPv6NDNsInterval('ipv6_nd_ns_interval'))
     self.register_child(IPv6NDReachable('ipv6_nd_reachable_time'))
     self.member1 = BridgeGroupMember()
     self.member2 = BridgeGroupMember()
     self.response_parser = cli_interaction.ignore_info_response_parser
Ejemplo n.º 3
0
 def __init__(self, name):
     SimpleType.__init__(self, name,
                         asa_gen_template='interface TVI1');  # Phase 1 only has TVI1
     self.register_child(IPv4Addr('ipv4_address'))
     self.register_child(DMList(name='ipv6_address_with_prefix', child_class=IPv6Addr, asa_key ='ipv6 address'))
     self.register_child(IPv6Enable('ipv6_enable'))
     self.register_child(IPv6NDDad('ipv6_nd_dad_attempts'))
     self.register_child(IPv6NDNsInterval('ipv6_nd_ns_interval'))
     self.register_child(IPv6NDReachable('ipv6_nd_reachable_time'))
     self.register_child(MACAddr('mac-address'))
     self.register_child(NameIF('nameif'))
     self.response_parser = cli_interaction.ignore_info_response_parser
Ejemplo n.º 4
0
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template='interface TVI1')
     # Phase 1 only has TVI1
     self.register_child(IPv4Addr('ipv4_address'))
     self.register_child(
         DMList(name='ipv6_address_with_prefix',
                child_class=IPv6Addr,
                asa_key='ipv6 address'))
     self.register_child(IPv6Enable('ipv6_enable'))
     self.register_child(IPv6NDDad('ipv6_nd_dad_attempts'))
     self.register_child(IPv6NDNsInterval('ipv6_nd_ns_interval'))
     self.register_child(IPv6NDReachable('ipv6_nd_reachable_time'))
     self.register_child(MACAddr('mac-address'))
     self.register_child(NameIF('nameif'))
     self.response_parser = cli_interaction.ignore_info_response_parser
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='object-group service %(name)s');
     self.register_child(Description())
     children = [# ifc_key              child_class      asa_key
                 ('protocol_type',      ProtocolObject, '^service-object \S+$'),
                 ('object_name',        ObjectObject,   '^service-object object'),
                 ('tcp',                TCPObject,      '^service-object tcp '),
                 ('udp',                UDPObject,      '^service-object udp '),
                 ('tcp-udp',            TCPUDPObject,   '^service-object tcp-udp'),
                 ('icmp',               ICMPObject,     '^service-object icmp '),
                 ('icmp6',              ICMP6Object,    '^service-object icmp6'),
                 ('object_group_name',  GroupObject,    '^group-object'),
     ]
     for ifc_key, child_class, asa_key in children:
         self.register_child(DMList(ifc_key, child_class, re.compile(asa_key)))
Ejemplo n.º 6
0
 def __init__(self, name):
     SimpleType.__init__(self,
                         name,
                         asa_gen_template='interface BVI%(bvi_id)s')
     self.register_child(IPv4Addr('ipv4_address'))
     self.register_child(
         DMList(name='ipv6_address_with_prefix',
                child_class=IPv6Addr,
                asa_key='ipv6 address'))
     self.register_child(IPv6Enable('ipv6_enable'))
     self.register_child(IPv6NDDad('ipv6_nd_dad_attempts'))
     self.register_child(IPv6NDNsInterval('ipv6_nd_ns_interval'))
     self.register_child(IPv6NDReachable('ipv6_nd_reachable_time'))
     self.member1 = BridgeGroupMember()
     self.member2 = BridgeGroupMember()
     self.response_parser = cli_interaction.ignore_info_response_parser
Ejemplo n.º 7
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='object-group service %(name)s')
     self.register_child(Description())
     children = [  # ifc_key              child_class      asa_key
         ('protocol_type', ProtocolObject, '^service-object \S+$'),
         ('object_name', ObjectObject, '^service-object object'),
         ('tcp', TCPObject, '^service-object tcp '),
         ('udp', UDPObject, '^service-object udp '),
         ('tcp-udp', TCPUDPObject, '^service-object tcp-udp'),
         ('icmp', ICMPObject, '^service-object icmp '),
         ('icmp6', ICMP6Object, '^service-object icmp6'),
         ('object_group_name', GroupObject, '^group-object'),
     ]
     for ifc_key, child_class, asa_key in children:
         self.register_child(
             DMList(ifc_key, child_class, re.compile(asa_key)))
Ejemplo n.º 8
0
 def __init__(self, name):
     SimpleType.__init__(self,
                         name,
                         asa_gen_template='object-group network %(name)s')
     self.register_child(Description())
     self.register_child(
         DMList(name='host_ip_address',
                child_class=HostObject,
                asa_key='network-object host'))
     self.register_child(
         DMList(name='object_name',
                child_class=ObjectObject,
                asa_key='network-object object'))
     self.register_child(
         DMList(name='network_ip_address',
                child_class=NetworkObject,
                asa_key='network-object'))
     self.register_child(
         DMList(name='object_group_name',
                child_class=GroupObject,
                asa_key='group-object'))
 def __init__(self, ifc_key, asa_gen_template):
     SimpleType.__init__(self, ifc_key = ifc_key, asa_gen_template = asa_gen_template)
     self.cli_key = ''
     self.response_parser = cli_interaction.ignore_info_response_parser
Ejemplo n.º 10
0
 def __init__(self):
     SimpleType.__init__(self,
                         ifc_key='network_ip_address',
                         asa_key='subnet')
Ejemplo n.º 11
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd ns-interval', \
                         asa_gen_template='ipv6 nd ns-interval %s')
Ejemplo n.º 12
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='ipv6 address %s')
Ejemplo n.º 13
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='ip_address_range', asa_key='range')
Ejemplo n.º 14
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='host_ip_address', asa_key='host')
Ejemplo n.º 15
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='peer ip %(peer_ip)s')
Ejemplo n.º 16
0
 def __init__(self, ifc_key, asa_key, default, min, max, allow0=False):
     SimpleType.__init__(self, ifc_key=ifc_key, asa_key=asa_key, defaults=default)
     TimeValidator.__init__(self, min=min, max=max, allow0=allow0)
Ejemplo n.º 17
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'vxlan port', \
                         asa_gen_template='vxlan port %s')
Ejemplo n.º 18
0
 def __init__(self, name):
     SimpleType.__init__(self, name);
     self.register_child(Peer('Peer'))
     self.register_child(SourceInterface('source_interface'))
     self.response_parser = cli_interaction.ignore_info_response_parser
     self.encapsulation = Encapsulation()
Ejemplo n.º 19
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'nameif', \
                         asa_gen_template='nameif %s')
 def __init__(self):
     SimpleType.__init__(self, ifc_key='network_ip_address', asa_key = 'subnet')
Ejemplo n.º 21
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='source-interface %s')
Ejemplo n.º 22
0
 def __init__(self, connector = None):
     '@param connector: str, the name of a connector; None for global policy'
     SimpleType.__init__(self, ifc_key = 'ServicePolicyState', asa_key = "service-policy")
     NameIf.__init__(self, connector)
Ejemplo n.º 23
0
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template="ntp server %(server)s")
Ejemplo n.º 24
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='fqdn', asa_key='fqdn')
Ejemplo n.º 25
0
 def __init__(self, name):
     SimpleType.__init__(
         self, name, is_removable=True, asa_gen_template="ntp authentication-key %(key_number)s md5 %(key)s"
     )
 def __init__(self, name):
     SimpleType.__init__(self, name,
                         asa_gen_template='object network %(name)s');
     self.register_child(Description())
Ejemplo n.º 27
0
 def __init__(self, ifc_key, asa_gen_template):
     SimpleType.__init__(self,
                         ifc_key=ifc_key,
                         asa_gen_template=asa_gen_template)
     self.cli_key = ''
     self.response_parser = cli_interaction.ignore_info_response_parser
Ejemplo n.º 28
0
 def __init__(self, ifc_key, asa_gen_template, allow_modify=False):
     SimpleType.__init__(self,
                         ifc_key=ifc_key,
                         asa_gen_template=asa_gen_template)
     self.allow_modify = allow_modify
Ejemplo n.º 29
0
 def __init__(self, name):
     SimpleType.__init__(self,
                         name,
                         asa_gen_template='object network %(name)s')
     self.register_child(Description())
Ejemplo n.º 30
0
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template="ntp trusted-key %s")
Ejemplo n.º 31
0
 def __init__(self, ifc_key, asa_gen_template):
     SimpleType.__init__(self,
                         ifc_key=ifc_key,
                         asa_gen_template=asa_gen_template)
Ejemplo n.º 32
0
 def __init__(self, ifc_key, asa_key, default, min, max, allow0=False):
     SimpleType.__init__(self,
                         ifc_key=ifc_key,
                         asa_key=asa_key,
                         defaults=default)
     TimeValidator.__init__(self, min=min, max=max, allow0=allow0)
Ejemplo n.º 33
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='peer ip %(peer_ip)s')
Ejemplo n.º 34
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd dad attempts', \
                         asa_gen_template='ipv6 nd dad attempts %s')
Ejemplo n.º 35
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='source-interface %s')
Ejemplo n.º 36
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd reachable-time', \
                         asa_gen_template='ipv6 nd reachable-time %s')
Ejemplo n.º 37
0
Archivo: dns.py Proyecto: 3pings/aci
 def __init__(self):
     '''
     Constructor
     '''
     SimpleType.__init__(self, "domain_lookup", 'dns domain-lookup')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd ns-interval', \
                         asa_gen_template='ipv6 nd ns-interval %s')
 def __init__(self):
     SimpleType.__init__(self, ifc_key='host_ip_address', asa_key = 'host')
Ejemplo n.º 40
0
Archivo: dns.py Proyecto: 3pings/aci
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template='name-server %s')
 def __init__(self):
     SimpleType.__init__(self, ifc_key='ip_address_range', asa_key = 'range')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd dad attempts', \
                         asa_gen_template='ipv6 nd dad attempts %s')
Ejemplo n.º 43
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'vxlan port', \
                         asa_gen_template='vxlan port %s')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'ipv6 nd reachable-time', \
                         asa_gen_template='ipv6 nd reachable-time %s')
Ejemplo n.º 45
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'mac-address', \
                         asa_gen_template='mac-address %s')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='ip address %s')
Ejemplo n.º 47
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'nameif', \
                         asa_gen_template='nameif %s')
Ejemplo n.º 48
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='TrafficSelection', asa_key='match', defaults='any')
Ejemplo n.º 49
0
 def __init__(self, name):
     SimpleType.__init__(self, name)
     self.register_child(Peer('Peer'))
     self.register_child(SourceInterface('source_interface'))
     self.response_parser = cli_interaction.ignore_info_response_parser
     self.encapsulation = Encapsulation()
 def __init__(self, ifc_key, asa_gen_template, allow_modify = False):
     SimpleType.__init__(self, ifc_key = ifc_key, asa_gen_template = asa_gen_template)
     self.allow_modify = allow_modify
 def __init__(self, ifc_key, asa_gen_template):
     SimpleType.__init__(self, ifc_key = ifc_key, asa_gen_template = asa_gen_template)
Ejemplo n.º 52
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='protocol_type', asa_key='service')
 def __init__(self):
     SimpleType.__init__(self, ifc_key='fqdn', asa_key = 'fqdn')