Categories
Network Automation

Junos PyEZ how to fix the xmlSAX2Characters:huge text node

When trying to acquire a huge bit of config from juniper routers and parse it with PyEZ sometimes you get an error. Something like: pyez xmlSAX2Characters: huge text node, line 256071, column 53 (<string>, line 256071) PyEZ uses ncclient the python netconf client behind the scenes.It isn’t well documented in their docs though. Allowing a […]

Categories
Network Automation

Querying JSON: YAQL vs JSONpath vs JMESPath (and new entrants)

These days many api’s over HTTP that we query return JSON. That is great and all, it is much more readable for humans than XML. What about when there is a large set of JSON and you only need a small part of it? There are different ways of doing it, like converting the json […]

Categories
Network Automation

Network Automation with Juniper

I know a bit about networking – IP addresses, different layers, HTTP, DNS, ethernet cables, default gateway, routers, switches, TCP/UDP and DHCP. However, this is mainly from a home network perspective. Getting into bigger and more advanced networking – I don’t know my arse from my elbow. I do know quite a bit of stuff […]