Created issue #3 in github <https://github.com/netmod-wg/acl-model/issues/3> as "The model defines 'ether-type' node as a string.” with the following description.
The model defines 'ether-type' node as a string. Ideally, this should be a well defined list of all Ethernet Types assigned by IEEE. This requires collaborating with IEEE. One suggestion was to define ether-type as identities. That works for when the identities themselves are distributed and need to be made extensible. But Ethernet Types are doled out in IEEE by Registration Authority Committee (RAC), so they could choose to centrally define it as an enum and give each hex string a name that could be used by models. If a user wants to configure a particular ether-type, the server must import a version of the IEEE 8021q model that has that enumeration. Alternatively, as @mbj4668 <https://github.com/mbj4668> has suggested, it could also be a typedef like this: typedef ether-type { type union { type ieee-ether-type:ether-type-enum; type uint16; // or a hex-based number } } Finally, the suggestion is to have ether-type defined as a number (or hex based). This is flexible, but requires users/operators to read and write numbers which are harder to remember than symbolic names. My personal preference would be for IEEE to define and publish the YANG model with the definitions. Mahesh Jethanandani mjethanand...@gmail.com
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod