summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-21 02:10:10 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-01 21:24:40 +0900
commit43845dfc19601af3bd8acf93fbdcc0903af16943 (patch)
treeafb60daa92b213bd9b4edebba86f2561053cf53b
parentba7b6bb88956ebe3251661b4ca96861a2ff93f01 (diff)
packet: add esitype_string.go
generated by stringer -type="ESIType" bgp.go validate.go Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r--packet/esitype_string.go16
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]]
+}