cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1312
Views
0
Helpful
3
Replies
michelbijnsdorp
Beginner

XMLNS Cisco YANG data scheme netconf/yang IOS-XR

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

{

  •  
    "nodes": {
    •  
      "node": [
      •  
        {
        • "id": "new-netconf-device"
        },
      •  
        {
        • "id": "pe1",
        • "netconf-node-inventory:connected": true,
        •  
          "netconf-node-inventory:initial-capability": [
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-man-xml-ttyagent-cfg?revision=2013-07-22)Cisco-IOS-XR-man-xml-ttyagent-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv6-ma-cfg?revision=2013-07-22)Cisco-IOS-XR-ipv6-ma-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg?revision=2013-07-22)Cisco-IOS-XR-ifmgr-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-lib-keychain-oper?revision=2013-07-22)Cisco-IOS-XR-lib-keychain-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-parser-cfg?revision=2013-07-22)Cisco-IOS-XR-parser-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-shellutil-oper?revision=2013-07-22)Cisco-IOS-XR-shellutil-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-management-datatypes?revision=2013-07-22)Cisco-IOS-XR-tty-management-datatypes",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg?revision=2013-07-22)Cisco-IOS-XR-ipv4-io-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-oper?revision=2013-07-22)Cisco-IOS-XR-ifmgr-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-lib-keychain-cfg?revision=2013-07-22)Cisco-IOS-XR-lib-keychain-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-man-xml-ttyagent-oper?revision=2013-07-22)Cisco-IOS-XR-man-xml-ttyagent-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-rgmgr-cfg?revision=2013-07-22)Cisco-IOS-XR-rgmgr-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-oper?revision=2013-07-22)Cisco-IOS-XR-ipv4-io-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-oper?revision=2013-07-22)Cisco-IOS-XR-ip-domain-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-vty-cfg?revision=2013-07-22)Cisco-IOS-XR-tty-vty-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-shellutil-cfg?revision=2013-07-22)Cisco-IOS-XR-shellutil-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-server-oper?revision=2013-07-22)Cisco-IOS-XR-tty-server-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-ma-cfg?revision=2013-07-22)Cisco-IOS-XR-ipv4-ma-cfg",
          • "(urn:ietf:params:xml:ns:yang:ietf-yang-types?revision=2013-07-15)ietf-yang-types",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ha-eem-cfg?revision=2013-07-22)Cisco-IOS-XR-ha-eem-cfg",
          • "(http://cisco.com/ns/yang/cisco-xr-types?revision=2013-07-22)Cisco-IOS-XR-types",
          • "(urn:ietf:params:xml:ns:yang:ietf-inet-types?revision=2013-07-15)ietf-inet-types",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-cdp-cfg?revision=2013-07-22)Cisco-IOS-XR-cdp-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-cfg?revision=2013-07-22)Cisco-IOS-XR-ip-domain-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-ma-oper?revision=2013-07-22)Cisco-IOS-XR-ipv4-ma-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-management-cfg?revision=2013-07-22)Cisco-IOS-XR-tty-management-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-man-netconf-cfg?revision=2013-07-22)Cisco-IOS-XR-man-netconf-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-management-oper?revision=2013-07-22)Cisco-IOS-XR-tty-management-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-sam-cfg?revision=2013-07-22)Cisco-IOS-XR-crypto-sam-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-tty-server-cfg?revision=2013-07-22)Cisco-IOS-XR-tty-server-cfg",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-rgmgr-oper?revision=2013-07-22)Cisco-IOS-XR-rgmgr-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ipv6-ma-oper?revision=2013-07-22)Cisco-IOS-XR-ipv6-ma-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ip-iarm-datatypes?revision=2013-07-22)Cisco-IOS-XR-ip-iarm-datatypes",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-crypto-sam-oper?revision=2013-07-22)Cisco-IOS-XR-crypto-sam-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-qos-ma-oper?revision=2013-07-22)Cisco-IOS-XR-qos-ma-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-ha-eem-oper?revision=2013-07-22)Cisco-IOS-XR-ha-eem-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-cdp-oper?revision=2013-07-22)Cisco-IOS-XR-cdp-oper",
          • "(http://cisco.com/ns/yang/Cisco-IOS-XR-infra-infra-cfg?revision=2013-07-22)Cisco-IOS-XR-infra-infra-cfg"
          ]
        },
  • thanks in advance,

Michel Bijnsdorp

3 REPLIES 3
michelbijnsdorp
Beginner

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

 

http://{{HOST}}:{{PORT}}/restconf/config/opendaylight-inventory:nodes/node/pe1/yang-ext:mount/Cisco-IOS-XR-ifmgr-cfg:interface-configurations

 

<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

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

 

Some YANG schema may be found here:

https://github.com/YangModels/yang

Regards

Nathan

Content for Community-Ad