Closed jtdub closed 10 months ago
Junos does support a edit
stanza is the intention to use that in the future? Or always go the route of deleting then doing a new set
?
example:
[edit]
user@host# edit protocols ospf area 0.0.0.0
[edit protocols ospf area 0.0.0.0]
user@host# set interface so-0/0/0 hello-interval 5
[edit protocols ospf area 0.0.0.0]
user@host# delete
Delete everything under this level? [yes, no] yes
[edit protocols ospf area 0.0.0.0]
user@host# show
[edit]
user@host#
@jeffkala - Currently, it's set
and delete
fixes #103
"set" based operating systems can now be remediated in experimental capacity. Here is an example of a JunOS style remediation.
Configurations loaded into Hier Config as Juniper-style syntax are converted to a flat
set
based configuration format. Remediations are then rendered using thisset
style syntax.