ietf-ivy-wg / network-inventory-yang

Other
0 stars 3 forks source link

Missing component location attribute #42

Open italobusi opened 3 months ago

italobusi commented 3 months ago

The location attribute defined in draft-ietf-ccamp-network-inventory-yang-02 is missing from the base model:

        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> …]]'
            ";
        }

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:

    leaf location {
      type string;
      description
        "A system-defined description of the location of the
        component within the system.";
    }