summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/safi_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg/zebra/safi_string.go')
-rw-r--r--internal/pkg/zebra/safi_string.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/pkg/zebra/safi_string.go b/internal/pkg/zebra/safi_string.go
new file mode 100644
index 00000000..ab491cb6
--- /dev/null
+++ b/internal/pkg/zebra/safi_string.go
@@ -0,0 +1,17 @@
+// Code generated by "stringer -type=SAFI"; DO NOT EDIT.
+
+package zebra
+
+import "fmt"
+
+const _SAFI_name = "SAFI_UNICASTSAFI_MULTICASTSAFI_RESERVED_3SAFI_MPLS_VPNSAFI_MAX"
+
+var _SAFI_index = [...]uint8{0, 12, 26, 41, 54, 62}
+
+func (i SAFI) String() string {
+ i -= 1
+ if i >= SAFI(len(_SAFI_index)-1) {
+ return fmt.Sprintf("SAFI(%d)", i+1)
+ }
+ return _SAFI_name[_SAFI_index[i]:_SAFI_index[i+1]]
+}