openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
890 stars 644 forks source link

Using status substatement for uses statement #1140

Open Shashank-arista opened 2 months ago

Shashank-arista commented 2 months ago

In the PR: https://github.com/openconfig/public/pull/1138, I am trying to apply status deprecated for a uses statement as below but its not getting applied as per the tree definition:

uses oc-if:interface-ref-common {
  status deprecated;
}
                    |  +--rw config
                    |  |  +--rw incoming-label?   oc-mplst:mpls-label
                    |  |  x--rw next-hop?         inet:ip-address
                    |  |  x--rw push-label?       oc-mplst:mpls-label
                    |  |  +--rw interface?        -> /oc-if:interfaces/interface/name
                    |  |  +--rw subinterface?     -> /oc-if:interfaces/interface[oc-if:name=current()/../interface]/subinterfaces/subinterface/index
                    |  |  +--rw metric?           uint8

As you can see only next-hop and push-label are showing as deprecated. Can you please help what could be wrong here?

earies commented 2 months ago

I believe you are referring to the same discussion in https://github.com/openconfig/public/issues/1113

Shashank-arista commented 2 months ago

Yes, this is the same issue, thanks.