From 48108fcfbd42c7679455cfc168a4b840b27f8698 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 28 Aug 2017 15:43:07 +0900 Subject: zebra/zapi: Define constants for FRRouting support Signed-off-by: IWASE Yusuke --- zebra/ptm_enable_string.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 zebra/ptm_enable_string.go (limited to 'zebra/ptm_enable_string.go') 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]] +} -- cgit v1.2.3