leaf location {
type string;
description
"A relative location information of this component.
In optical transport network, the location string is
using the following pattern:
'/ne=<nw-ne-name>[/r=<r_index>][/sh=<sh_index>
[/s_sh=<s_sh_index> ...]][[/sl=<sl_index>
[/s_sl=<s_sl_index> ...]][/p=<p_index> …]]'
";
}
The location attribute defined in draft-ietf-ccamp-network-inventory-yang-02 is missing from the base model:
As indicated in Appendix A.1 of draft-ietf-ccamp-network-inventory-yang-02, a similar attribute exists also in OpenConfig:
https://github.com/openconfig/public/blob/master/release/models/platform/openconfig-platform.yang
It is proposed to add this attribute also to the base network inventory model with a more generic description: