cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1278
Views
0
Helpful
2
Replies

Netconf request based on YANG on Cisco-IOS-XE-native not returning all expected fields

olmomezger
Level 1
Level 1

Hi, 

 

I'm making a get request to the sandbox 

sandbox-iosxe-latest-1.cisco.com

with the following payload:

 

Sending:

#851
<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:0357a54b-0c41-4a24-991a-6a238cba67a7"><nc:get>
    <nc:filter>
      <native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
        <version/>
        <location>
          <civic-location>
            <identifier>
              <identifier/>
              <building/>
              <floor/>
              <landmark/>
              <name/>
              <number/>
            </identifier>
          </civic-location>
        </location>
        <hw-module>
          <sm/>
        </hw-module>
        <hostname/>
        <interface>
          <Ethernet>
            <name/>
            <description/>
            <mac-address/>
          </Ethernet>
        </interface>
      </native>
    </nc:filter>
  </nc:get>
</nc:rpc>

##

 

However, the response I'm getting contains only the version and the name. It does not contain all nested elements. 

 

Here is the response using YANGSuite:

 

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:0357a54b-0c41-4a24-991a-6a238cba67a7" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
      <version>17.3</version>
      <hostname>csr1000v-1</hostname>
    </native>
  </data>
</rpc-reply>

 

 

any idea why I'm not getting the missing information? 

1 Accepted Solution

Accepted Solutions

olmomezger i would post this over at https://community.cisco.com/t5/yang-tools/bd-p/5475j-disc-dev-net-ydk - this community is focused on the sandbox portfolio and issues with the devices, questions around devices platform and configuration are better in the other community.

 

Hope you find your reply there.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

2 Replies 2

olmomezger i would post this over at https://community.cisco.com/t5/yang-tools/bd-p/5475j-disc-dev-net-ydk - this community is focused on the sandbox portfolio and issues with the devices, questions around devices platform and configuration are better in the other community.

 

Hope you find your reply there.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: