Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Get some configuration information with "get-configuration"

<rpc><get-configuration format="json"><configuration><interfaces><interface><name>ge-0/0/0</name></ interface></interfaces></configuration></get-configuration></rpc>]]>]]>




single line json file:

<rpc><lock><target><candidate/></target></lock></rpc>]]>]]>



  1. lock the configuration database
  2. merge the new information into the configuration
  3. commit the configuration
  4. unlock the configuration database


XML :

<rpc><lock><target><candidate/></target></lock></rpc>]]>]]>

<rpc> <get-configuration format= "json"> <c onfiguration> <interfaces> <interface> <name>ge-0/0/0</name> </interface> </interfaces> </configuration> </get-configuration> </rpc> ]]>]]>

<rpc> <commit/> </rpc> ]]>]]>

<rpc> <unlock> <target> <candidate/> </target> </unlock> </rpc> ]]>]]>


JSON:

<rpc> <load-configuration action="merge" format="json"> <configuration-json> { "configuration" : { "interfaces" : { "interface" : [ { "name" : "ge-0/0/1", "unit" : [ { "name" : 0, "family" : { "inet" : { "address" : [ { "name" : "172.17.1.100/24" } ] } } } ] } ] } } } </configuration-json> </load-configuration> </rpc> ]]>]]>






  • No labels