<edit-config>
Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>
Hi,
The request from the script should do the job. More info here: https://docs.fd.io/hc2vpp/1.18.01/hc2vpp-parent/release-notes-aggregator/user_honeycomb_and_ODL.html
There is some info on invoking remote RPCs on the Netconf wiki (you will find link in the document above).
Regards, Marek
From: hc2vpp@... [mailto:hc2vpp@...]
On Behalf Of Kawshik Sarkar
Sent: 28 lutego 2018 00:43 To: hc2vpp@... Cc: hc2vpp@... Subject: Re: [hc2vpp] <edit-config>
Thanks Marek, that worked. I am yet to find a proper documentation on how to mount honeycomb to ODL controller.
BR Kawshik
On Tue, Feb 27, 2018 at 2:11 PM, Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco) <mgradzki@...> wrote:
|
|
Kawshik Sarkar
Thanks Marek, that worked. I am yet to find a proper documentation on how to mount honeycomb to ODL controller. Does creating this script into the odl controller do the trick? https://wiki.opnfv.org/display/fds/Honeycomb+mounting+into+ODL Is there any tutorial on how to generate an rpc after mounting? BR Kawshik On Tue, Feb 27, 2018 at 2:11 PM, Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco) <mgradzki@...> wrote:
|
|
Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES@Cisco) <mgradzki@...>
Hi,
your xml is invalid (missing config element, interfaces tag not closed, …).
Try: <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <candidate/> </target> <config> <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>YOUR_INTERFACE_NAME</name> <enabled>true</enabled> </interface> </interfaces> </config> </edit-config> </rpc> ]]>]]>
<rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <commit/> </rpc> ]]>]]>
For more examples you can mount honeycomb to ODL controller and enable DEBUG/TRACE for org.opendaylight.netconf.sal-netconf-connector.
Regards, Marek
From: hc2vpp@... [mailto:hc2vpp@...]
On Behalf Of Kawshik Sarkar
Sent: 27 lutego 2018 00:00 To: hc2vpp@... Subject: [hc2vpp] <edit-config>
-I connnected through ssh admin@localhost -p 2831 -s netconf.
-Did a capability exchange.(successfully) -Did a get-config and got a response.(successfully)
What i wasnt able to do was an <edit-config>
Can someone share a succesful <edit-config> rpc that i can just try out on my vpp and get it to work?
Something as simple as turning an interface ''on''
using netconf-yang.
I tried the following didnt work!
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <source/> </target> <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>GigabitEthernet13/0/0</name> <enabled>true</enabled> </interface> </edit-config> </rpc> ]]>]]>
BR Kawshik
|
|
Kawshik Sarkar
-I connnected through ssh admin@localhost -p 2831 -s netconf. -Did a capability exchange.(successfully) -Did a get-config and got a response.(successfully) What i wasnt able to do was an <edit-config> Can someone share a succesful <edit-config> rpc that i can just try out on my vpp and get it to work? Something as simple as turning an interface ''on'' using netconf-yang. I tried the following didnt work! <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <source/> </target> <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>GigabitEthernet13/0/0</name> <enabled>true</enabled> </interface> </edit-config> </rpc> ]]>]]> BR Kawshik |
|