pyez-examples icon indicating copy to clipboard operation
pyez-examples copied to clipboard

PyEZ examples for reference

Results 3 pyez-examples issues
Sort by recently updated
recently updated
newest added

from jnpr.junos import Device from jnpr.junos.utils.config import Config import logging ...... logging.basicConfig(level=logging.INFO) dev = Device(user='root', passwd='*****', mode='serial', port='COM4', gather_facts=True) print(dev.facts) cu = Config(dev) cu.load('set system host-name test', format='set', ignore_warning=True) cu.commit()...

There is no output coming when trying to run following :-1: for i in op.xpath('.//link-level-type'): print (i.text) When trying to use print(op.findtext('name')) it is showing as none

Contributing a user defined table to gather configuration information from interfaces of junos devices.