summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/lsptype_string.go
blob: 5b95918093e311041746c9fa18638b0e6365d00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by "stringer -type=lspTYPE"; DO NOT EDIT.

package zebra

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[lspNone-0]
	_ = x[lspStatic-1]
	_ = x[lspLDP-2]
	_ = x[lspBGP-3]
	_ = x[lspSR-4]
	_ = x[lspSHARP-5]
}

const _lspTYPE_name = "lspNonelspStaticlspLDPlspBGPlspSRlspSHARP"

var _lspTYPE_index = [...]uint8{0, 7, 16, 22, 28, 33, 41}

func (i lspTYPE) String() string {
	if i >= lspTYPE(len(_lspTYPE_index)-1) {
		return "lspTYPE(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _lspTYPE_name[_lspTYPE_index[i]:_lspTYPE_index[i+1]]
}