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

RestConf GET does not show complete interface configuration

mario.jost
Level 3
Level 3

I am working on testing Restconf on a catalyst 9200 switch. So I wanna get the interface configuration via REST API. I send following request:

curl -k https://sw02/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F2 -u "cis:co"

I get following Reply:

<GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native"  xmlns:ios="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
  <name>1/0/2</name>
  <source>
    <template>
      <template-name>
        <template-name>LAN</template-name>
      </template-name>
    </template>
  </source>
</GigabitEthernet>

But if i show the running configuration, i can see that there are PoE configurations on the interface that are not shown in the API output:

interface GigabitEthernet1/0/2
 power inline port 2x-mode
 source template LAN
end

Is this part of the configuration found on some other path? Can we fully switch to API for managing our devices, or do we have to expect that some percentage of configuration cannot be done via API? IOS-XE version 16.09.06 in use here.

0 Replies 0
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:

Review Cisco Networking products for a $25 gift card