parsing Cisco configuration
There is a very nice Python module to parse Cisco configurations.
There is a very nice Python module to parse Cisco configurations.
As I wrote in my previous article, Cisco ASR have a strange way of indexing its cbQos* tables, so I had to rewrite a parser following the MIB more closely. It is available as part of a bigger software part, originally written by Shane Scott, namely a QoS Zenpack for Zenoss. I adapted Shane’s work to […]
Python 2.7 and later have format(), but in Python 2.6 and lower, if you want to format big numbers with thousands separators, you are on your own. This code seem to work nicely and is tolerant.
In CISCO-CLASS-BASED-QOS-MIB.my, Cisco says: Service policy is a policymap that is being attached to a logical interface. Because a policymap can also be a part of the hierarchical structure (inside a classmap), only a policymap that is directly attached to a logical interface is considered a service policy. Each service policy is uniquely identified by […]
Nftables has been selected for inclusion in the upcoming Linux Kernel 3.13. After years of development – including a iptable-compatibility mode – the new kernel module is now ready for release. Nftable is simpler than iptables, it cleans up ip6 integration and it allows for easier rule scripting. Those interested to get going fast can […]