You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
https://www.juniper.net/documentation/en_US/junos-pyez/topics/reference/general/junos-pyez-configuration-process-and-data-formats.html
|
|
---|
4 steps | Lock the configuration using lock() Modify the configuration by performing one of the following actions: Commit the configuration using commit() , as described in Committing the Configuration and Using Junos PyEZ to Commit the Configuration Unlock the configuration using unlock()
|
|
from jnpr.junos import Device
from jnpr.junos.utils.config import Config
dev = Device(host='dc1a1.example.com').open()
with Config(dev, mode='private') as cu:
cu.load('set interface ge-0/0/7 disable', format='set')
cu.pdiff()
cu.commit()
dev.close()
|
|
|
|
|
|
|
|
|
|
|