summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/ptm_enable_string.go
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2018-08-17 19:41:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-18 10:41:20 +0900
commitedbedebf7b048034eeed4bc7f442432d15d549d8 (patch)
tree9ace882d6b57e1b458fe208cd7e7ef200853adce /internal/pkg/zebra/ptm_enable_string.go
parent75254037d47ca8a6cf86604d8371d5db5db8464d (diff)
ZAPI5 (FRRouting version 5) support
Diffstat (limited to 'internal/pkg/zebra/ptm_enable_string.go')
-rw-r--r--internal/pkg/zebra/ptm_enable_string.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/zebra/ptm_enable_string.go b/internal/pkg/zebra/ptm_enable_string.go
index d750542e..e9d829fa 100644
--- a/internal/pkg/zebra/ptm_enable_string.go
+++ b/internal/pkg/zebra/ptm_enable_string.go
@@ -2,7 +2,7 @@
package zebra
-import "fmt"
+import "strconv"
const _PTM_ENABLE_name = "PTM_ENABLE_OFFPTM_ENABLE_ONPTM_ENABLE_UNSPEC"
@@ -10,7 +10,7 @@ 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(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PTM_ENABLE_name[_PTM_ENABLE_index[i]:_PTM_ENABLE_index[i+1]]
}