cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
491
Views
0
Helpful
1
Replies

[NSO-5.6] perform deactivate over junos devices using restconf

sayeali
Cisco Employee
Cisco Employee

Hi ,

Can someone pls help to execute deactivate commands of configs using resconf similar to how we are performing in CLI .

admin@ncs(config)# deactivate devices device junos1 config configuration groups BASE-SYSTEM system commit synchronize                                

admin@ncs(config)# show full-configuration devices device junos1 config configuration groups BASE-SYSTEM system commit synchronize | display restconf

inactive: /restconf/data/tailf-ncs:devices/device=junos1/config/junos:configuration/groups=BASE-SYSTEM/system/commit/synchronize

THanks in advance ..!!!

1 Accepted Solution

Accepted Solutions

sayeali
Cisco Employee
Cisco Employee

Found a way however not working on synchronize level on netsim devices where as work fine on real devices on each level  

<devices xmlns="http://tail-f.com/ns/ncs">
<device >
<name>junos1</name>
<config>
<configuration xmlns="http://xml.juniper.net/xnm/1.1/xnm">
<groups>
<name >BASE-SYSTEM</name>
<system >
<commit inactive="inactive">
<synchronize />
</commit>
</system>
</groups>
</configuration>
</config>
</device>

View solution in original post

1 Reply 1

sayeali
Cisco Employee
Cisco Employee

Found a way however not working on synchronize level on netsim devices where as work fine on real devices on each level  

<devices xmlns="http://tail-f.com/ns/ncs">
<device >
<name>junos1</name>
<config>
<configuration xmlns="http://xml.juniper.net/xnm/1.1/xnm">
<groups>
<name >BASE-SYSTEM</name>
<system >
<commit inactive="inactive">
<synchronize />
</commit>
</system>
</groups>
</configuration>
</config>
</device>