summaryrefslogtreecommitdiffhomepage
path: root/zebra/nexthop_flag_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/nexthop_flag_string.go')
-rw-r--r--zebra/nexthop_flag_string.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/zebra/nexthop_flag_string.go b/zebra/nexthop_flag_string.go
new file mode 100644
index 00000000..38f08b8a
--- /dev/null
+++ b/zebra/nexthop_flag_string.go
@@ -0,0 +1,17 @@
+// Code generated by "stringer -type=NEXTHOP_FLAG"; DO NOT EDIT.
+
+package zebra
+
+import "fmt"
+
+const _NEXTHOP_FLAG_name = "NEXTHOP_IFINDEXNEXTHOP_IFNAMENEXTHOP_IPV4NEXTHOP_IPV4_IFINDEXNEXTHOP_IPV4_IFNAMENEXTHOP_IPV6NEXTHOP_IPV6_IFINDEXNEXTHOP_IPV6_IFNAMENEXTHOP_BLACKHOLE"
+
+var _NEXTHOP_FLAG_index = [...]uint8{0, 15, 29, 41, 61, 80, 92, 112, 131, 148}
+
+func (i NEXTHOP_FLAG) String() string {
+ i -= 1
+ if i >= NEXTHOP_FLAG(len(_NEXTHOP_FLAG_index)-1) {
+ return fmt.Sprintf("NEXTHOP_FLAG(%d)", i+1)
+ }
+ return _NEXTHOP_FLAG_name[_NEXTHOP_FLAG_index[i]:_NEXTHOP_FLAG_index[i+1]]
+}