public icon indicating copy to clipboard operation
public copied to clipboard

Yang Issue with openconfig-mpls

Open mksriram opened this issue 8 years ago • 3 comments

openconfig-mpls imports openconfig-segment-routing with a prefix of oc-sr openconfig-mpls includes the sub-package openconfig-mpls-te which imports openconfig-mpls-sr whose prefix is also defined as oc-sr

In openconfig-mpls-sr, the prefix is defined as oc-mpls-sr

So can we please have the openconfig-mpls-te be modified to change the following import openconfig-mpls-sr { prefix oc-sr; } to import openconfig-mpls-sr { prefix oc-mpls-sr; }

and the subsequent references of oc-sr to oc-mpls-sr?

mksriram avatar Mar 30 '17 15:03 mksriram

Hi,

I think this is valid YANG. Per Section 5.1 of 6020, then the prefix used in the import statement is only locally significant to the importing entity. We can look at changing this if it causes tooling issues -- could you confirm what toolchain you're using that doesn't support this please?

Thanks, r.

robshakir avatar Jun 03 '17 02:06 robshakir

Sorry. I didnt realize that there was a question posted.

I am using the Opendaylight yang parser.(Boron)

Thanks Sriram

mksriram avatar Jul 12 '17 21:07 mksriram

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.

github-actions[bot] avatar Jul 03 '24 02:07 github-actions[bot]