srx-policy-search | Python library and CLI to search an SRX security rule base

 by   lampwins Python Version: Current License: MIT

kandi X-RAY | srx-policy-search Summary

kandi X-RAY | srx-policy-search Summary

srx-policy-search is a Python library. srx-policy-search has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install srx-policy-search' or download it from GitHub, PyPI.

This is a simple Python script that searches a Juniper SRX policy for references to a provided search term. You can search policies by either IP address, service, or action. ####Setup You will need to connect to a device and retrieve its configuration. Then you need a search object. Now you can begin searching. All search methods return a list of Policy objects or an empty list is there are no matches. ####IP Address IP address searches can be either explicit or by default include policies that reference containing subnets. You may also search by CIDR notation. The Policy class has a __str__ method so a simple two liner can print all your policies. ####Service Service based searches ask for a destination protocol and port and currently only support UDP and TCP searches. ####Action Action based searches ask for one of the three standard SRX policy actions to match on. The polices are normalized into a simple Policy data model which could be used to translate into another system. Also included is a basic CLI in main.py which makes used of everything mentioned above.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              srx-policy-search has a low active ecosystem.
              It has 2 star(s) with 2 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 7 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of srx-policy-search is current.

            kandi-Quality Quality

              srx-policy-search has no bugs reported.

            kandi-Security Security

              srx-policy-search has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              srx-policy-search is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              srx-policy-search releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed srx-policy-search and discovered the below as its top functions. This is intended to give you an instant insight into srx-policy-search implemented functionality, and help decide if they suit your requirements.
            • Given a list of policy tuples return a list of relevant resources .
            • Parse an address
            • Initialize connection parameters .
            • String representation .
            • Return a list of lines that match the given section .
            • Return the service instance associated with the given instance .
            • Return the value of an address .
            • r Add to self .
            • Adds an address to the network .
            • Add two strings .
            Get all kandi verified functions for this library.

            srx-policy-search Key Features

            No Key Features are available at this moment for srx-policy-search.

            srx-policy-search Examples and Code Snippets

            No Code Snippets are available at this moment for srx-policy-search.

            Community Discussions

            No Community Discussions are available at this moment for srx-policy-search.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install srx-policy-search

            You can install using 'pip install srx-policy-search' or download it from GitHub, PyPI.
            You can use srx-policy-search like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/lampwins/srx-policy-search.git

          • CLI

            gh repo clone lampwins/srx-policy-search

          • sshUrl

            git@github.com:lampwins/srx-policy-search.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link