github.com/osrg/gobgp/v3@v3.30.0/pkg/zebra/routetype_string.go (about) 1 // Code generated by "stringer -type=RouteType"; DO NOT EDIT. 2 3 package zebra 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[routeSystem-0] 12 _ = x[routeKernel-1] 13 _ = x[routeConnect-2] 14 _ = x[RouteStatic-3] 15 _ = x[routeRIP-4] 16 _ = x[routeRIPNG-5] 17 _ = x[routeOSPF-6] 18 _ = x[routeOSPF6-7] 19 _ = x[routeISIS-8] 20 _ = x[RouteBGP-9] 21 _ = x[routePIM-10] 22 _ = x[routeEIGRP-11] 23 _ = x[routeNHRP-12] 24 _ = x[routeHSLS-13] 25 _ = x[routeOLSR-14] 26 _ = x[routeTABLE-15] 27 _ = x[routeLDP-16] 28 _ = x[routeVNC-17] 29 _ = x[routeVNCDirect-18] 30 _ = x[routeVNCDirectRH-19] 31 _ = x[routeBGPDirect-20] 32 _ = x[routeBGPDirectEXT-21] 33 _ = x[routeBABEL-22] 34 _ = x[routeSHARP-23] 35 _ = x[routePBR-24] 36 _ = x[routeBFD-25] 37 _ = x[routeOpenfabric-26] 38 _ = x[routeVRRP-27] 39 _ = x[routeNHG-28] 40 _ = x[routeSRTE-29] 41 _ = x[routeAll-30] 42 _ = x[routeMax-31] 43 _ = x[zapi5Frr4RouteAll-24] 44 _ = x[zapi5Frr5RouteAll-25] 45 _ = x[zapi6Frr6RouteAll-26] 46 _ = x[zapi6Frr7RouteAll-27] 47 _ = x[zapi6Frr7dot2RouteAll-28] 48 _ = x[zapi6Frr7dot3RouteAll-29] 49 _ = x[zapi4RouteNHRP-11] 50 _ = x[zapi4RouteHSLS-12] 51 _ = x[zapi4RouteOLSR-13] 52 _ = x[zapi4RouteTABLE-14] 53 _ = x[zapi4RouteLDP-15] 54 _ = x[zapi4RouteVNC-16] 55 _ = x[zapi4RouteVNCDirect-17] 56 _ = x[zapi4RouteVNCDirectRH-18] 57 _ = x[zapi4RouteBGPDixrect-19] 58 _ = x[zapi4RouteBGPDirectEXT-20] 59 _ = x[zapi4RouteAll-21] 60 _ = x[zapi3RouteHSLS-11] 61 _ = x[zapi3RouteOLSR-12] 62 _ = x[zapi3RouteBABEL-13] 63 _ = x[zapi3RouteNHRP-14] 64 } 65 66 const _RouteType_name = "routeSystemrouteKernelrouteConnectRouteStaticrouteRIProuteRIPNGrouteOSPFrouteOSPF6routeISISRouteBGProutePIMrouteEIGRProuteNHRProuteHSLSrouteOLSRrouteTABLErouteLDProuteVNCrouteVNCDirectrouteVNCDirectRHrouteBGPDirectrouteBGPDirectEXTrouteBABELrouteSHARProutePBRrouteBFDrouteOpenfabricrouteVRRProuteNHGrouteSRTErouteAllrouteMax" 67 68 var _RouteType_index = [...]uint16{0, 11, 22, 34, 45, 53, 63, 72, 82, 91, 99, 107, 117, 126, 135, 144, 154, 162, 170, 184, 200, 214, 231, 241, 251, 259, 267, 282, 291, 299, 308, 316, 324} 69 70 func (i RouteType) String() string { 71 if i >= RouteType(len(_RouteType_index)-1) { 72 return "RouteType(" + strconv.FormatInt(int64(i), 10) + ")" 73 } 74 return _RouteType_name[_RouteType_index[i]:_RouteType_index[i+1]] 75 }