From edbedebf7b048034eeed4bc7f442432d15d549d8 Mon Sep 17 00:00:00 2001 From: Hitoshi Irino Date: Fri, 17 Aug 2018 19:41:32 +0900 Subject: ZAPI5 (FRRouting version 5) support --- internal/pkg/zebra/afi_string.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/zebra/afi_string.go') diff --git a/internal/pkg/zebra/afi_string.go b/internal/pkg/zebra/afi_string.go index 6c07a09d..6a4278a3 100644 --- a/internal/pkg/zebra/afi_string.go +++ b/internal/pkg/zebra/afi_string.go @@ -2,7 +2,7 @@ package zebra -import "fmt" +import "strconv" const _AFI_name = "AFI_IPAFI_IP6AFI_ETHERAFI_MAX" @@ -11,7 +11,7 @@ var _AFI_index = [...]uint8{0, 6, 13, 22, 29} func (i AFI) String() string { i -= 1 if i >= AFI(len(_AFI_index)-1) { - return fmt.Sprintf("AFI(%d)", i+1) + return "AFI(" + strconv.FormatInt(int64(i+1), 10) + ")" } return _AFI_name[_AFI_index[i]:_AFI_index[i+1]] } -- cgit v1.2.3