Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length of vendor-oui is incorrect. #380

Open
jboyd77 opened this issue Mar 28, 2018 · 0 comments
Open

Length of vendor-oui is incorrect. #380

jboyd77 opened this issue Mar 28, 2018 · 0 comments
Assignees

Comments

@jboyd77
Copy link

jboyd77 commented Mar 28, 2018

typedef vendor-oui {
  type yang:hex-string {
    length 6;
  }
  description "24-bit Organizationally Unique Identifier";
  reference
    "IEEE Std 802-2001, Clause 9";
}

The 'length' statement here applies to the base type string and not the length of the type hex-string. The type hex-string of the pattern xx:xx:xx ... so for a 3 byte OUI, overall length of the string is 8 inclusive of the : separators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants