summaryrefslogtreecommitdiffhomepage
path: root/packet/routefamily_string.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-27 06:58:50 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-27 06:58:50 -0800
commita3c1e53deda9f9834994751382f64827c14a9c32 (patch)
tree7c9504d979ac1afe425d8e57cb8117c389ec8f8c /packet/routefamily_string.go
parenteff70c21375742b44ae5ebfd845dba38d0f3fcfc (diff)
RouteFamily cleanup
RouteFamily is defined in two files. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/routefamily_string.go')
-rw-r--r--packet/routefamily_string.go46
1 files changed, 46 insertions, 0 deletions
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)
+ }
+}