summaryrefslogtreecommitdiffhomepage
path: root/zebra/safi_string.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-08-28 14:41:25 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-09-06 08:14:14 +0900
commitd643cea85f034eeac22f857bd7bce5a82fe05d9d (patch)
tree894b00b38695da8f89db8d026205da9e037519d4 /zebra/safi_string.go
parent2c6bca5485ea3e7a35d13b2f3202b07a089fb9ab (diff)
zebra/zapi: Regenerate stringer
This patch re-generates String() functions with "go generate" command. e.g.) go generate ./zebra Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/safi_string.go')
-rw-r--r--zebra/safi_string.go39
1 files changed, 2 insertions, 37 deletions
diff --git a/zebra/safi_string.go b/zebra/safi_string.go
index 1bfcc506..ab491cb6 100644
--- a/zebra/safi_string.go
+++ b/zebra/safi_string.go
@@ -1,4 +1,4 @@
-// generated by stringer --type SAFI,API_TYPE,ROUTE_TYPE,NEXTHOP_FLAG; DO NOT EDIT
+// Code generated by "stringer -type=SAFI"; DO NOT EDIT.
package zebra
@@ -10,43 +10,8 @@ var _SAFI_index = [...]uint8{0, 12, 26, 41, 54, 62}
func (i SAFI) String() string {
i -= 1
- if i+1 >= SAFI(len(_SAFI_index)) {
+ if i >= SAFI(len(_SAFI_index)-1) {
return fmt.Sprintf("SAFI(%d)", i+1)
}
return _SAFI_name[_SAFI_index[i]:_SAFI_index[i+1]]
}
-
-const _API_TYPE_name = "INTERFACE_ADDINTERFACE_DELETEINTERFACE_ADDRESS_ADDINTERFACE_ADDRESS_DELETEINTERFACE_UPINTERFACE_DOWNIPV4_ROUTE_ADDIPV4_ROUTE_DELETEIPV6_ROUTE_ADDIPV6_ROUTE_DELETEREDISTRIBUTE_ADDREDISTRIBUTE_DELETEREDISTRIBUTE_DEFAULT_ADDREDISTRIBUTE_DEFAULT_DELETEIPV4_NEXTHOP_LOOKUPIPV6_NEXTHOP_LOOKUPIPV4_IMPORT_LOOKUPIPV6_IMPORT_LOOKUPINTERFACE_RENAMEROUTER_ID_ADDROUTER_ID_DELETEROUTER_ID_UPDATEHELLOMESSAGE_MAX"
-
-var _API_TYPE_index = [...]uint16{0, 13, 29, 50, 74, 86, 100, 114, 131, 145, 162, 178, 197, 221, 248, 267, 286, 304, 322, 338, 351, 367, 383, 388, 399}
-
-func (i API_TYPE) String() string {
- i -= 1
- if i+1 >= API_TYPE(len(_API_TYPE_index)) {
- return fmt.Sprintf("API_TYPE(%d)", i+1)
- }
- return _API_TYPE_name[_API_TYPE_index[i]:_API_TYPE_index[i+1]]
-}
-
-const _ROUTE_TYPE_name = "ROUTE_SYSTEMROUTE_KERNELROUTE_CONNECTROUTE_STATICROUTE_RIPROUTE_RIPNGROUTE_OSPFROUTE_OSPF6ROUTE_ISISROUTE_BGPROUTE_HSLSROUTE_OLSRROUTE_BABELROUTE_MAX"
-
-var _ROUTE_TYPE_index = [...]uint8{0, 12, 24, 37, 49, 58, 69, 79, 90, 100, 109, 119, 129, 140, 149}
-
-func (i ROUTE_TYPE) String() string {
- if i+1 >= ROUTE_TYPE(len(_ROUTE_TYPE_index)) {
- return fmt.Sprintf("ROUTE_TYPE(%d)", i)
- }
- return _ROUTE_TYPE_name[_ROUTE_TYPE_index[i]:_ROUTE_TYPE_index[i+1]]
-}
-
-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+1 >= NEXTHOP_FLAG(len(_NEXTHOP_FLAG_index)) {
- return fmt.Sprintf("NEXTHOP_FLAG(%d)", i+1)
- }
- return _NEXTHOP_FLAG_name[_NEXTHOP_FLAG_index[i]:_NEXTHOP_FLAG_index[i+1]]
-}