netutils is a Python library offering a collection of functions and objects for common network automation tasks, such as BGP ASN conversion, interface name standardization, MAC address formatting, IP address calculations, and configuration parsing. It is actively maintained with frequent releases, typically every few weeks, and is currently at version 1.17.2.
pip install netutilsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `netutils.config.parser.ConfigParser` to parse a sample Cisco IOS configuration. It also includes a basic example of an IP utility function. Note that `ntc-templates` is a required dependency for the `ConfigParser` to function correctly.
Refactor code to subclass the appropriate private configuration parser class if extending HP Network OS parsing functionality. Consult the latest documentation for the correct base class.
Upgrade to `netutils` version 1.15.2 or newer to ensure correct handling of `salt=0` in `encrypt_cisco_type7`.
Upgrade to `netutils` version 1.17.1 or newer to correctly parse empty Palo Alto Networks PanOS configurations.
Ensure your Python environment is within the supported range (e.g., Python 3.10, 3.11, 3.12, 3.13, 3.14).
Install `ntc-templates` explicitly: `pip install ntc-templates`.