04-22-2021 01:25 AM
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?
Solved! Go to Solution.
04-22-2021 09:28 AM
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.
04-22-2021 09:28 AM
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.
04-23-2021 12:08 AM
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: