02-10-2015 05:09 AM
Hi,
Can anyone point me where I can find the Cisco yang data scheme of the following capability that I retrieve from a mountpoint via Postman to a ODN helium SR server so I know how to program a POST restconf (eg config an Ip adress on a Interface)?
e.g can be found at: https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Model_Reference
{
Michel Bijnsdorp
02-11-2015 03:55 AM
Hi
based on what I received from the following query:
http://{{HOST}}:8181/restconf/config/opendaylight-inventory:nodes/node/pe1/yang-ext:mount/
"Cisco-IOS-XR-ifmgr-cfg:interface-configurations": {
"interface-configuration":
{
"active": "act",
"interface-name": "Loopback1",
"Cisco-IOS-XR-ipv4-io-cfg:ipv4-network": {
"addresses": {
"primary": {
"netmask": "255.255.255.252",
"address": "192.168.255.1"
I created the following POST action in POSTman
<interface-configuration xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
<active>act</active>
<interface-name>Loopback100</interface-name>
<ipv4-network xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg">
<addresses>
<primary>
<netmask>255.255.255.255</netmask>
<address>1.1.1.1</address>
</primary>
</addresses>
</ipv4-network>
</interface-configuration>
POSTman response status: 204 no content (postman shows '1')
and I can see on the router prompt that ODL is owner of the configuration session on the router;
RP/0/0/CPU0:pe1#conf t
Wed Feb 11 02:08:15.761 PST
Current Configuration Session Line User Date Lock
00000000-000c511d-0000001c NETCONF admin Mon Feb 9 05:56:17 2015
So the question is how can send a "commit" via netconf/yang in order to commit my changes en release the config session?
thanks in advance,
Michel Bijnsdorp
03-04-2015 02:48 AM
Hi,
sorry i fear that i can't be of a big help here, since i only have done it with pure netconf. My Netconf-Clients just send a commit, thats all ;-) I am using a java based clients, but it is working from CLI also as long as the provided XML is correct
But - where do have the Cisco IOS Any scheme from ? All i have is XSD, and i am looking for yang for ages.....
Thanks
Carsten
08-29-2016 02:21 AM
Some YANG schema may be found here:
https://github.com/YangModels/yang
Regards
Nathan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide