diff options
author | Hitoshi Irino <irino@sfc.wide.ad.jp> | 2018-08-17 19:41:32 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-08-18 10:41:20 +0900 |
commit | edbedebf7b048034eeed4bc7f442432d15d549d8 (patch) | |
tree | 9ace882d6b57e1b458fe208cd7e7ef200853adce /internal/pkg/zebra/safi_string.go | |
parent | 75254037d47ca8a6cf86604d8371d5db5db8464d (diff) |
ZAPI5 (FRRouting version 5) support
Diffstat (limited to 'internal/pkg/zebra/safi_string.go')
-rw-r--r-- | internal/pkg/zebra/safi_string.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/zebra/safi_string.go b/internal/pkg/zebra/safi_string.go index ab491cb6..8199a0e3 100644 --- a/internal/pkg/zebra/safi_string.go +++ b/internal/pkg/zebra/safi_string.go @@ -2,7 +2,7 @@ package zebra -import "fmt" +import "strconv" const _SAFI_name = "SAFI_UNICASTSAFI_MULTICASTSAFI_RESERVED_3SAFI_MPLS_VPNSAFI_MAX" @@ -11,7 +11,7 @@ var _SAFI_index = [...]uint8{0, 12, 26, 41, 54, 62} func (i SAFI) String() string { i -= 1 if i >= SAFI(len(_SAFI_index)-1) { - return fmt.Sprintf("SAFI(%d)", i+1) + return "SAFI(" + strconv.FormatInt(int64(i+1), 10) + ")" } return _SAFI_name[_SAFI_index[i]:_SAFI_index[i+1]] } |