Hi all,
I'm unable to manage (get-config, edit-config) PoE port by NETCONF on Cisco Switch 9300.
I arrive to get standard interfaces, from yang models (ietf-interfaces, Cisco-IOS-XE-native) info with RPC or python request by scripts and Yang-explorer (v0.8.0).
I added yang model Cisco-IOS-XE-native and Cisco-IOS-XE-Power@2017-11-27 or openconfig-if-poe@2017-09-14 in Yang-Explorer but impossible to get information except "<perpetual-poe-ha/>"
I tested many request like :
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter>
<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native" xmlns:ios-power="http://cisco.com/ns/yang/Cisco-IOS-XE-power">
<interface>
<GigabitEthernet>
<port-type>ianaift:ethernetCsmacd</port-type>
</GigabitEthernet>
</interface>
<ios-power:power/>
</native>
</filter>
</get>
</rpc>
But I receive no Poe information. I don't find examples of request for Poe on this Switch. I don't know if my request is wrongly write or if a configuration on the switch must be done to allow my tasks.
Any help would be hugely appreciated.
# Switch Infos
- Catalyst 9000 Series
- Catalyst 9300 48 UPOE
# Capability given..
# IOS version
- Cisco IOS-XE Everest 16.6.5
# Yang extract (partial) of Cisco-IOS-XE-power.yang
pyang -f tree -p release/models Cisco-IOS-XE-power.yang --tree-depth 4
module: Cisco-IOS-XE-power
augment /ios:native:
+--rw power
+--rw inline!
| +--rw consumption
| | +--rw default? uint16
| +--rw logging
| +--rw global? empty
+--rw redundancy-mode? enumeration
+--rw max-min? enumeration
+--rw inputs? uint8
augment /ios:native/ios:interface/ios:FastEthernet:
+--rw power
+--rw inline
+--rw consumption? uint16
+--rw never? empty
+--rw auto!
| +--rw max? int32
+--rw four-pair
| +--rw forced? empty
+--rw police!
| +--rw action
| ...
+--rw port
| +--rw poe-ha? empty
| +--rw perpetual-poe-ha? empty
| +--rw two-event? empty
+--rw static!
+--rw max? int32