summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/afi_string.go
blob: 1cda4d15961e7b09e80dd1bc1ac9ab2a31076a53 (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
// Code generated by "stringer -type=afi"; 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[afiIP-1]
	_ = x[afiIP6-2]
	_ = x[afiEther-3]
	_ = x[afiMax-4]
}

const _afi_name = "afiIPafiIP6afiEtherafiMax"

var _afi_index = [...]uint8{0, 5, 11, 19, 25}

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