From a3c1e53deda9f9834994751382f64827c14a9c32 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 27 Dec 2014 06:58:50 -0800 Subject: RouteFamily cleanup RouteFamily is defined in two files. Signed-off-by: FUJITA Tomonori --- packet/routefamily_string.go | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packet/routefamily_string.go (limited to 'packet/routefamily_string.go') diff --git a/packet/routefamily_string.go b/packet/routefamily_string.go new file mode 100644 index 00000000..a6b9a933 --- /dev/null +++ b/packet/routefamily_string.go @@ -0,0 +1,46 @@ +// generated by stringer -type=RouteFamily; DO NOT EDIT + +package bgp + +import "fmt" + +const ( + _RouteFamily_name_0 = "RF_IPv4_UC" + _RouteFamily_name_1 = "RF_IPv4_MPLS" + _RouteFamily_name_2 = "RF_IPv4_VPN" + _RouteFamily_name_3 = "RF_RTC_UC" + _RouteFamily_name_4 = "RF_IPv6_UC" + _RouteFamily_name_5 = "RF_IPv6_MPLS" + _RouteFamily_name_6 = "RF_IPv6_VPN" +) + +var ( + _RouteFamily_index_0 = [...]uint8{0, 10} + _RouteFamily_index_1 = [...]uint8{0, 12} + _RouteFamily_index_2 = [...]uint8{0, 11} + _RouteFamily_index_3 = [...]uint8{0, 9} + _RouteFamily_index_4 = [...]uint8{0, 10} + _RouteFamily_index_5 = [...]uint8{0, 12} + _RouteFamily_index_6 = [...]uint8{0, 11} +) + +func (i RouteFamily) String() string { + switch { + case i == 65537: + return _RouteFamily_name_0 + case i == 65540: + return _RouteFamily_name_1 + case i == 65664: + return _RouteFamily_name_2 + case i == 65668: + return _RouteFamily_name_3 + case i == 131073: + return _RouteFamily_name_4 + case i == 131076: + return _RouteFamily_name_5 + case i == 131200: + return _RouteFamily_name_6 + default: + return fmt.Sprintf("RouteFamily(%d)", i) + } +} -- cgit v1.2.3