diff options
Diffstat (limited to 'packet')
-rw-r--r-- | packet/esitype_string.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packet/esitype_string.go b/packet/esitype_string.go new file mode 100644 index 00000000..5651bda8 --- /dev/null +++ b/packet/esitype_string.go @@ -0,0 +1,16 @@ +// generated by stringer -type=ESIType bgp.go validate.go; DO NOT EDIT + +package bgp + +import "fmt" + +const _ESIType_name = "ESI_ARBITRARYESI_LACPESI_MSTPESI_MACESI_ROUTERIDESI_AS" + +var _ESIType_index = [...]uint8{0, 13, 21, 29, 36, 48, 54} + +func (i ESIType) String() string { + if i+1 >= ESIType(len(_ESIType_index)) { + return fmt.Sprintf("ESIType(%d)", i) + } + return _ESIType_name[_ESIType_index[i]:_ESIType_index[i+1]] +} |