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
 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
Beispiel #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)))
Beispiel #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
Beispiel #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)))
Beispiel #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
Beispiel #10
0
 def __init__(self):
     SimpleType.__init__(self,
                         ifc_key='network_ip_address',
                         asa_key='subnet')
Beispiel #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')
Beispiel #12
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='ipv6 address %s')
Beispiel #13
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='ip_address_range', asa_key='range')
Beispiel #14
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='host_ip_address', asa_key='host')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='peer ip %(peer_ip)s')
 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)
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'vxlan port', \
                         asa_gen_template='vxlan port %s')
 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, 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')
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_gen_template='source-interface %s')
Beispiel #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)
Beispiel #23
0
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template="ntp server %(server)s")
Beispiel #24
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='fqdn', asa_key='fqdn')
Beispiel #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())
Beispiel #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
Beispiel #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
Beispiel #29
0
 def __init__(self, name):
     SimpleType.__init__(self,
                         name,
                         asa_gen_template='object network %(name)s')
     self.register_child(Description())
Beispiel #30
0
 def __init__(self, name):
     SimpleType.__init__(self, name, asa_gen_template="ntp trusted-key %s")
Beispiel #31
0
 def __init__(self, ifc_key, asa_gen_template):
     SimpleType.__init__(self,
                         ifc_key=ifc_key,
                         asa_gen_template=asa_gen_template)
Beispiel #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)
Beispiel #33
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='peer ip %(peer_ip)s')
Beispiel #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')
Beispiel #35
0
 def __init__(self, instance):
     SimpleType.__init__(self,
                         ifc_key=instance,
                         asa_gen_template='source-interface %s')
Beispiel #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')
Beispiel #37
0
Datei: dns.py Projekt: 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')
Beispiel #40
0
Datei: dns.py Projekt: 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')
Beispiel #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')
Beispiel #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')
Beispiel #47
0
 def __init__(self, instance):
     SimpleType.__init__(self, ifc_key = instance, asa_key = 'nameif', \
                         asa_gen_template='nameif %s')
Beispiel #48
0
 def __init__(self):
     SimpleType.__init__(self, ifc_key='TrafficSelection', asa_key='match', defaults='any')
Beispiel #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)
Beispiel #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')