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

IOS XE - YANG model for pseudowire status

Marcin Kurek
Level 1
Level 1

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!

 

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: