summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/nexthop_flag_string.go
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2020-04-25 22:06:21 +0900
committerHitoshi Irino <irino@sfc.wide.ad.jp>2020-04-26 07:43:50 +0900
commitcf572bc5fc4647ea675c8a3482d80d181f62c66c (patch)
treeb50bc6a682c801062ffe19a198b05ddc743a84ee /internal/pkg/zebra/nexthop_flag_string.go
parentf11b9c7afb198dd6bfea9a167f41a62569f24756 (diff)
Refactoring Zebra and supporting frr7.3
- Change const values to camel case from snake case to make zero golint's warnigns - Introduce convert functions (toEach, toCommon) between the newest version to older versions - Merge code about decode nexthop to reduce lines of code - Add frr7.3 statemet in allowable software for config - Rename and Update generated file by stringer
Diffstat (limited to 'internal/pkg/zebra/nexthop_flag_string.go')
-rw-r--r--internal/pkg/zebra/nexthop_flag_string.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/internal/pkg/zebra/nexthop_flag_string.go b/internal/pkg/zebra/nexthop_flag_string.go
deleted file mode 100644
index 1ec9d6ac..00000000
--- a/internal/pkg/zebra/nexthop_flag_string.go
+++ /dev/null
@@ -1,41 +0,0 @@
-// Code generated by "stringer -type=NEXTHOP_FLAG"; DO NOT EDIT.
-
-package zebra
-
-import "strconv"
-
-const (
- _NEXTHOP_FLAG_name_0 = "NEXTHOP_FLAG_ACTIVENEXTHOP_FLAG_FIB"
- _NEXTHOP_FLAG_name_1 = "NEXTHOP_FLAG_RECURSIVE"
- _NEXTHOP_FLAG_name_2 = "NEXTHOP_FLAG_ONLINK"
- _NEXTHOP_FLAG_name_3 = "NEXTHOP_FLAG_MATCHED"
- _NEXTHOP_FLAG_name_4 = "NEXTHOP_FLAG_FILTERED"
- _NEXTHOP_FLAG_name_5 = "NEXTHOP_FLAG_DUPLICATE"
- _NEXTHOP_FLAG_name_6 = "NEXTHOP_FLAG_EVPN_RVTEP"
-)
-
-var (
- _NEXTHOP_FLAG_index_0 = [...]uint8{0, 19, 35}
-)
-
-func (i NEXTHOP_FLAG) String() string {
- switch {
- case 1 <= i && i <= 2:
- i -= 1
- return _NEXTHOP_FLAG_name_0[_NEXTHOP_FLAG_index_0[i]:_NEXTHOP_FLAG_index_0[i+1]]
- case i == 4:
- return _NEXTHOP_FLAG_name_1
- case i == 8:
- return _NEXTHOP_FLAG_name_2
- case i == 16:
- return _NEXTHOP_FLAG_name_3
- case i == 32:
- return _NEXTHOP_FLAG_name_4
- case i == 64:
- return _NEXTHOP_FLAG_name_5
- case i == 128:
- return _NEXTHOP_FLAG_name_6
- default:
- return "NEXTHOP_FLAG(" + strconv.FormatInt(int64(i), 10) + ")"
- }
-}