summaryrefslogtreecommitdiffhomepage
path: root/zebra/afi_string.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-08-28 15:43:07 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-02 00:14:09 +0900
commit48108fcfbd42c7679455cfc168a4b840b27f8698 (patch)
tree96812c0119615f8c5632269c3287299671707cbb /zebra/afi_string.go
parent880c54ba096c91d12cebb4de4903a56e6a989088 (diff)
zebra/zapi: Define constants for FRRouting support
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/afi_string.go')
-rw-r--r--zebra/afi_string.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/zebra/afi_string.go b/zebra/afi_string.go
new file mode 100644
index 00000000..6c07a09d
--- /dev/null
+++ b/zebra/afi_string.go
@@ -0,0 +1,17 @@
+// Code generated by "stringer -type=AFI"; DO NOT EDIT.
+
+package zebra
+
+import "fmt"
+
+const _AFI_name = "AFI_IPAFI_IP6AFI_ETHERAFI_MAX"
+
+var _AFI_index = [...]uint8{0, 6, 13, 22, 29}
+
+func (i AFI) String() string {
+ i -= 1
+ if i >= AFI(len(_AFI_index)-1) {
+ return fmt.Sprintf("AFI(%d)", i+1)
+ }
+ return _AFI_name[_AFI_index[i]:_AFI_index[i+1]]
+}