Hello guys,
I'm working on some programmability tasks using IOS XE 17.1 release.
I was trying to find the right YANG model to extract regular LDP pseudowire status, but without any luck.
It's pretty easy to extract PW config, but I cannot find a way to tell whether it's up or down at the moment.
I see that there is a cisco-pw YANG model, but when I use it within my code it doesn't return anything meaningful, I'm not sure why. Here's what's inside (output from pyang):
+--ro pseudowire-state
+--ro pseudowires* [vc-peer-address vc-id vc-owner-type vc-name vc-index]
+--ro vc-type? identityref
+--ro vc-owner-type enumeration
+--ro vc-owner-name? string
+--ro vc-psn-type? enumeration
+--ro vc-peer-address inet:ip-address
+--ro vc-id pw-vc-id-type
+--ro vc-index pw-vc-index-type
+--ro vc-local-group-id? pw-group-id-type
+--ro vc-control-word? boolean
+--ro vc-local-if-mtu? uint32
+--ro vc-remote-group-id? pw-group-id-type
+--ro vc-remote-control-word? enumeration
+--ro vc-remote-if-mtu? uint32
+--ro vc-outbound-label? uint32
+--ro vc-inbound-label? uint32
+--ro vc-name string
+--ro vc-oper-status? pw-oper-state-type
+--ro vc-inbound-oper-status? pw-oper-state-type
+--ro vc-outbound-oper-status? pw-oper-state-type
+--ro statistics
+--ro vc-create-time? yang:timestamp
+--ro vc-up-time? yang:timeticks
+--ro discontinuity-time yang:date-and-time
+--ro in-octets? yang:counter64
+--ro in-pkts? yang:counter64
+--ro in-errors? yang:counter64
+--ro out-octets? yang:counter64
+--ro out-pkts? yang:counter64
+--ro out-errors? yang:counter64
I'd appreciate any pointers. Many thanks!