From 43845dfc19601af3bd8acf93fbdcc0903af16943 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 21 Apr 2015 02:10:10 +0000 Subject: packet: add esitype_string.go generated by stringer -type="ESIType" bgp.go validate.go Signed-off-by: ISHIDA Wataru --- packet/esitype_string.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packet/esitype_string.go (limited to 'packet') 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]] +} -- cgit v1.2.3