diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-08-28 15:43:07 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-02 00:14:09 +0900 |
commit | 48108fcfbd42c7679455cfc168a4b840b27f8698 (patch) | |
tree | 96812c0119615f8c5632269c3287299671707cbb /zebra/ptm_enable_string.go | |
parent | 880c54ba096c91d12cebb4de4903a56e6a989088 (diff) |
zebra/zapi: Define constants for FRRouting support
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/ptm_enable_string.go')
-rw-r--r-- | zebra/ptm_enable_string.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zebra/ptm_enable_string.go b/zebra/ptm_enable_string.go new file mode 100644 index 00000000..d750542e --- /dev/null +++ b/zebra/ptm_enable_string.go @@ -0,0 +1,16 @@ +// Code generated by "stringer -type=PTM_ENABLE"; DO NOT EDIT. + +package zebra + +import "fmt" + +const _PTM_ENABLE_name = "PTM_ENABLE_OFFPTM_ENABLE_ONPTM_ENABLE_UNSPEC" + +var _PTM_ENABLE_index = [...]uint8{0, 14, 27, 44} + +func (i PTM_ENABLE) String() string { + if i >= PTM_ENABLE(len(_PTM_ENABLE_index)-1) { + return fmt.Sprintf("PTM_ENABLE(%d)", i) + } + return _PTM_ENABLE_name[_PTM_ENABLE_index[i]:_PTM_ENABLE_index[i+1]] +} |