Exemple #1
0
    def fw_ipv4_access_rules(self):
        """
        IPv4 rule entry point

        :rtype: CreateCollection(IPv4Rule)
        """
        return create_collection(self.get_relation('fw_ipv4_access_rules'),
                                 IPv4Rule)
Exemple #2
0
    def fw_ipv6_nat_rules(self):
        """
        IPv6NAT Rule entry point

        :rtype: CreateCollection(IPv6NATRule)
        """
        return create_collection(self.get_relation('fw_ipv6_nat_rules'),
                                 IPv6NATRule)
Exemple #3
0
    def layer2_ethernet_rules(self):
        """
        Layer 2 Ethernet access rule

        :rtype: CreateCollection(EthernetRule)
        """
        return create_collection(self.get_relation('layer2_ethernet_rules'),
                                 EthernetRule)
Exemple #4
0
    def file_filtering_rules(self):
        """
        File filtering rules for this policy.

        :rtype: CreateCollection(FileFilteringRule)
        """
        return create_collection(self.get_relation('file_filtering_rules'),
                                 FileFilteringRule)
Exemple #5
0
    def ips_ethernet_rules(self):
        """
        IPS Ethernet access rule

        :rtype: CreateCollection(EthernetRule)
        """
        return create_collection(self.get_relation('ips_ethernet_rules'),
                                 EthernetRule)
Exemple #6
0
    def layer2_ipv4_access_rules(self):
        """ 
        Layer2 Firewall access rule

        :rtype: CreateCollection(IPv4Layer2Rule)
        """
        return create_collection(self.get_relation('layer2_ipv4_access_rules'),
                                 IPv4Layer2Rule)
Exemple #7
0
    def ips_ipv4_access_rules(self):
        """ 
        IPS ipv4 access rules

        :rtype: CreateCollection(IPv4Layer2Rule)
        """
        return create_collection(self.get_relation('ips_ipv4_access_rules'),
                                 IPv4Layer2Rule)
    def vpn_site(self):
        """
        A VPN site defines a collection of IP's or networks that
        identify address space that is defined on the other end of
        the VPN tunnel.

        :rtype: CreateCollection(VPNSite)
        """
        return create_collection(self.get_relation("vpn_site"), VPNSite)
Exemple #9
0
    def vpn_site(self):
        """
        A VPN site defines a collection of IP's or networks that
        identify address space that is defined on the other end of
        the VPN tunnel.

        :rtype: CreateCollection(VPNSite)
        """
        return create_collection(
            self.get_relation('vpn_site'),
            VPNSite)
Exemple #10
0
 def sites(self):
     """
     VPN sites configured for this engine. Using sub element
     methods simplify fetching sites of interest::
     
         engine = Engine('sg_vm')
         mysite = engine.vpn.sites.get_contains('inter')
         print(mysite)
     
     :rtype: CreateCollection(VPNSite)
     """
     return create_collection( 
         self.internal_gateway.get_relation('vpn_site'), 
         VPNSite) 
    def external_endpoint(self):
        """
        An External Endpoint is the IP based definition for the destination
        VPN peers. There may be multiple per External Gateway.  Add a new
        endpoint to an existing test_external gateway::

            >>> list(ExternalGateway.objects.all())
            [ExternalGateway(name=cisco-remote-side), ExternalGateway(name=remoteside)]
            >>> gateway.external_endpoint.create('someendpoint', '12.12.12.12')
            'http://1.1.1.1:8082/6.1/elements/external_gateway/22961/external_endpoint/27467'

        :rtype: CreateCollection(ExternalEndpoint)
        """
        return create_collection(self.get_relation("external_endpoint"),
                                 ExternalEndpoint)
Exemple #12
0
    def external_endpoint(self):
        """
        An External Endpoint is the IP based definition for the destination
        VPN peers. There may be multiple per External Gateway.  Add a new
        endpoint to an existing test_external gateway::

            >>> list(ExternalGateway.objects.all())
            [ExternalGateway(name=cisco-remote-side), ExternalGateway(name=remoteside)]
            >>> gateway.external_endpoint.create('someendpoint', '12.12.12.12')
            'http://1.1.1.1:8082/6.1/elements/external_gateway/22961/external_endpoint/27467'

        :rtype: CreateCollection(ExternalEndpoint)
        """
        return create_collection(
            self.get_relation('external_endpoint'),
            ExternalEndpoint)
Exemple #13
0
    def virtual_resource(self):
        """
        Available on a Master Engine only.

        To get all virtual resources call::

            engine.virtual_resource.all()

        :raises UnsupportedEngineFeature: master engine only
        :rtype: CreateCollection(VirtualResource)
        """
        return create_collection(
            self.get_relation(
                'virtual_resources',
                UnsupportedEngineFeature),
            VirtualResource)