configure interface description and ip address with NetConf
1- write to the Candidate 2- do a "commit" RPC <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101"> <edit-config> <target> <candidate/> </target> <config> <interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface"> <interface> <name>xe5.10</name> <config> <description>change-desc2</description> </config> <ipv4 xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-if-ip"> <config> <enable-dhcp-ip-address/> </config> </ipv4> </interface> </interfaces> </config> </edit-config> </rpc> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102"> <commit/> </rpc> | |