diff options
author | Hariharakumar Narasimhakumar <hana8349@colorado.edu> | 2021-04-27 12:06:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 19:06:11 +0100 |
commit | f2616923e229eb3a760d676f77db5a1cd88d6f87 (patch) | |
tree | e3ffd9aa6a702c13625105aa7b7cb01e8ba30f1e /iana | |
parent | 58efeba27ae80bda66d717542046e345105bc3d2 (diff) |
Add dhcp Opt 124(vivc) parsing to ztp (#425)
* Add dhcp Opt 124(vivc) parsing to ztp
Signed-off-by: Hariharakumar Narasimhakumar <hhkumar@fb.com>
Diffstat (limited to 'iana')
-rw-r--r-- | iana/entid.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/iana/entid.go b/iana/entid.go new file mode 100644 index 0000000..df2ca13 --- /dev/null +++ b/iana/entid.go @@ -0,0 +1,21 @@ +package iana + +// EntID represents the Enterprise IDs as set by IANA +type EntID int + +// See https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers for values +const ( + EntIDCiscoSystems EntID = 9 +) + +var entIDToStringMap = map[EntID]string{ + EntIDCiscoSystems: "Cisco Systems", +} + +// String returns the vendor name for a given Enterprise ID +func (e EntID) String() string { + if vendor := entIDToStringMap[e]; vendor != "" { + return vendor + } + return "Unknown" +} |