diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-08-28 14:41:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-09-06 08:14:14 +0900 |
commit | d643cea85f034eeac22f857bd7bce5a82fe05d9d (patch) | |
tree | 894b00b38695da8f89db8d026205da9e037519d4 /zebra/nexthop_flag_string.go | |
parent | 2c6bca5485ea3e7a35d13b2f3202b07a089fb9ab (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/nexthop_flag_string.go')
-rw-r--r-- | zebra/nexthop_flag_string.go | 17 |
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]] +} |