Skip to content

Allow hexadecimal notation for enum values #155

@avtobiff

Description

@avtobiff

It would be beneficial to allow encoding of the enum value
in hexadecimal, example:

enum {
    value 0x1337;
}

This is not allowed in YANG 1.1. Howere, default integer
values are allowed to be encoded in hexadecimal.

The use case where I want it is in protocol version YANG
modules, where the protocol version is definen in an
IANA registry with a hexadecimal value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions