github.com/osrg/gobgp/v3@v3.30.0/pkg/zebra/apitype_string.go (about) 1 // Code generated by "stringer -type=APIType"; 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[interfaceAdd-0] 12 _ = x[interfaceDelete-1] 13 _ = x[interfaceAddressAdd-2] 14 _ = x[interfaceAddressDelete-3] 15 _ = x[interfaceUp-4] 16 _ = x[interfaceDown-5] 17 _ = x[_interfaceSetMaster-6] 18 _ = x[_interfaceSetProtoDown-7] 19 _ = x[RouteAdd-8] 20 _ = x[RouteDelete-9] 21 _ = x[_routeNotifyOwner-10] 22 _ = x[redistributeAdd-11] 23 _ = x[_redistributeDelete-12] 24 _ = x[_redistributeDefaultAdd-13] 25 _ = x[_redistributeDefaultDelete-14] 26 _ = x[routerIDAdd-15] 27 _ = x[_routerIDDelete-16] 28 _ = x[routerIDUpdate-17] 29 _ = x[Hello-18] 30 _ = x[_capabilities-19] 31 _ = x[nexthopRegister-20] 32 _ = x[nexthopUnregister-21] 33 _ = x[nexthopUpdate-22] 34 _ = x[_interfaceNBRAddressAdd-23] 35 _ = x[_interfaceNBRAddressDelete-24] 36 _ = x[_interfaceBFDDestUpdate-25] 37 _ = x[_importRouteRegister-26] 38 _ = x[_importRouteUnregister-27] 39 _ = x[_importCheckUpdate-28] 40 _ = x[_bfdDestRegister-29] 41 _ = x[_bfdDestDeregister-30] 42 _ = x[_bfdDestUpdate-31] 43 _ = x[_bfdDestReplay-32] 44 _ = x[RedistributeRouteAdd-33] 45 _ = x[RedistributeRouteDel-34] 46 _ = x[_vrfUnregister-35] 47 _ = x[_vrfAdd-36] 48 _ = x[_vrfDelete-37] 49 _ = x[vrfLabel-38] 50 _ = x[_interfaceVRFUpdate-39] 51 _ = x[_bfdClientRegister-40] 52 _ = x[_bfdClientDeregister-41] 53 _ = x[_interfaceEnableRADV-42] 54 _ = x[_interfaceDisableRADV-43] 55 _ = x[ipv4NexthopLookupMRIB-44] 56 _ = x[_interfaceLinkParams-45] 57 _ = x[_mplsLabelsAdd-46] 58 _ = x[_mplsLabelsDelete-47] 59 _ = x[_mplsLabelsReplace-48] 60 _ = x[_srPolicySet-49] 61 _ = x[_srPolicyDelete-50] 62 _ = x[_srPolicyNotifyStatus-51] 63 _ = x[_ipmrRouteStats-52] 64 _ = x[labelManagerConnect-53] 65 _ = x[labelManagerConnectAsync-54] 66 _ = x[getLabelChunk-55] 67 _ = x[releaseLabelChunk-56] 68 _ = x[_fecRegister-57] 69 _ = x[_fecUnregister-58] 70 _ = x[_fecUpdate-59] 71 _ = x[_advertiseDefaultGW-60] 72 _ = x[_advertiseSviMACIP-61] 73 _ = x[_advertiseSubnet-62] 74 _ = x[_advertiseAllVNI-63] 75 _ = x[_localESAdd-64] 76 _ = x[_localESDel-65] 77 _ = x[_remoteESVTEPAdd-66] 78 _ = x[_remoteESVTEPDel-67] 79 _ = x[_localESEVIAdd-68] 80 _ = x[_localESEVIDel-69] 81 _ = x[_vniAdd-70] 82 _ = x[_vniDel-71] 83 _ = x[_l3VNIAdd-72] 84 _ = x[_l3VNIDel-73] 85 _ = x[_remoteVTEPAdd-74] 86 _ = x[_remoteVTEPDel-75] 87 _ = x[_macIPAdd-76] 88 _ = x[_macIPDel-77] 89 _ = x[_ipPrefixRouteAdd-78] 90 _ = x[_ipPrefixRouteDel-79] 91 _ = x[_remoteMACIPAdd-80] 92 _ = x[_remoteMACIPDel-81] 93 _ = x[_duplicateAddrDetection-82] 94 _ = x[_pwAdd-83] 95 _ = x[_pwDelete-84] 96 _ = x[_pwSet-85] 97 _ = x[_pwUnset-86] 98 _ = x[_pwStatusUpdate-87] 99 _ = x[_ruleAdd-88] 100 _ = x[_ruleDelete-89] 101 _ = x[_ruleNotifyOwner-90] 102 _ = x[_tableManagerConnect-91] 103 _ = x[_getTableChunk-92] 104 _ = x[_releaseTableChunk-93] 105 _ = x[_ipSetCreate-94] 106 _ = x[_ipSetDestroy-95] 107 _ = x[_ipSetEntryAdd-96] 108 _ = x[_ipSetEntryDelete-97] 109 _ = x[_ipSetNotifyOwner-98] 110 _ = x[_ipSetEntryNotifyOwner-99] 111 _ = x[_ipTableAdd-100] 112 _ = x[_ipTableDelete-101] 113 _ = x[_ipTableNotifyOwner-102] 114 _ = x[_vxlanFloodControl-103] 115 _ = x[_vxlanSgAdd-104] 116 _ = x[_vxlanSgDel-105] 117 _ = x[_vxlanSgReplay-106] 118 _ = x[_mlagProcessUp-107] 119 _ = x[_mlagProcessDown-108] 120 _ = x[_mlagClientRegister-109] 121 _ = x[_mlagClientUnregister-110] 122 _ = x[_mlagClientForwardMsg-111] 123 _ = x[_nhgAdd-112] 124 _ = x[_nhgDel-113] 125 _ = x[_nhgNotifyOwner-114] 126 _ = x[_nhgEvpnRemoteNhAdd-115] 127 _ = x[_nhgEvpnRemoteNhDel-116] 128 _ = x[_srv6LocatorAdd-117] 129 _ = x[_srv6LocatorDelete-118] 130 _ = x[_srv6ManagerGetLocatorChunk-119] 131 _ = x[_srv6ManagerReleaseLocatorChunk-120] 132 _ = x[zebraError-121] 133 _ = x[_clientCapabilities-122] 134 _ = x[_opaqueMessage-123] 135 _ = x[_opaqueRegister-124] 136 _ = x[_opaqueUnregister-125] 137 _ = x[_neighDiscover-126] 138 _ = x[_RouteNotifyRequest-127] 139 _ = x[_ClientCloseNotify-128] 140 _ = x[_NhrpNeighAdded-129] 141 _ = x[_NhrpNeighRemoved-130] 142 _ = x[_NhrpNeighGet-131] 143 _ = x[_NhrpNeighRegister-132] 144 _ = x[_NhrpNeighUnregister-133] 145 _ = x[_NeighIPAdd-134] 146 _ = x[_NeighIPDel-135] 147 _ = x[_ConfigureArp-136] 148 _ = x[_GreGet-137] 149 _ = x[_GreUpdate-138] 150 _ = x[_GreSourceSet-139] 151 _ = x[BackwardIPv6RouteAdd-140] 152 _ = x[BackwardIPv6RouteDelete-141] 153 _ = x[zapi6Frr8dot2MinDifferentAPIType-26] 154 _ = x[zapi6Frr7dot3MinDifferentAPIType-49] 155 _ = x[zapi6Frr7dot2MinDifferentAPIType-48] 156 _ = x[zapi6Frr6MinDifferentAPIType-7] 157 _ = x[zapi5ClMinDifferentAPIType-19] 158 _ = x[zapi5MinDifferentAPIType-7] 159 _ = x[zapi4MinDifferentAPIType-6] 160 _ = x[zapi3MinDifferentAPIType-0] 161 _ = x[zapi6Frr8dot2RedistributeRouteAdd-30] 162 _ = x[zapi6Frr8dot2RedistributeRouteDel-31] 163 _ = x[zapi6Frr8dot2VrfLabel-35] 164 _ = x[zapi6Frr8dot2Ipv4NexthopLookupMRIB-41] 165 _ = x[zapi6Frr8dot2LabelManagerConnect-50] 166 _ = x[zapi6Frr8dot2LabelManagerConnectAsync-51] 167 _ = x[zapi6Frr8dot2GetLabelChunk-52] 168 _ = x[zapi6Frr8dot2ReleaseLabelChunk-53] 169 _ = x[zapi6Frr7dot3LabelManagerConnect-50] 170 _ = x[zapi6Frr7dot3LabelManagerConnectAsync-51] 171 _ = x[zapi6Frr7dot3GetLabelChunk-52] 172 _ = x[zapi6Frr7dot3ReleaseLabelChunk-53] 173 _ = x[zapi6Frr7dot2LabelManagerConnect-49] 174 _ = x[zapi6Frr7dot2LabelManagerConnectAsync-50] 175 _ = x[zapi6Frr7dot2GetLabelChunk-51] 176 _ = x[zapi6Frr7dot2ReleaseLabelChunk-52] 177 _ = x[zapi6Frr7RouteAdd-7] 178 _ = x[zapi6Frr7RouteDelete-8] 179 _ = x[zapi6Frr7RedistributAdd-10] 180 _ = x[zapi6Frr7RouterIDAdd-14] 181 _ = x[zapi6Frr7RouterIDUpdate-16] 182 _ = x[zapi6Frr7Hello-17] 183 _ = x[zapi6Frr7NexthopRegister-19] 184 _ = x[zapi6Frr7NexthopUnregister-20] 185 _ = x[zapi6Frr7NexthopUpdate-21] 186 _ = x[zapi6Frr7RedistributeRouteAdd-32] 187 _ = x[zapi6Frr7RedistributeRouteDel-33] 188 _ = x[zapi6Frr7VrfLabel-37] 189 _ = x[zapi6Frr7Ipv4NexthopLookupMRIB-43] 190 _ = x[zapi6Frr7LabelManagerConnect-48] 191 _ = x[zapi6Frr7LabelManagerConnectAsync-49] 192 _ = x[zapi6Frr7GetLabelChunk-50] 193 _ = x[zapi6Frr7ReleaseLabelChunk-51] 194 _ = x[zapi5ClIpv4NexthopLookupMRIB-42] 195 _ = x[zapi5ClLabelManagerConnect-47] 196 _ = x[zapi5ClGetLabelChunk-48] 197 _ = x[zapi5ClReleaseLabelChunk-49] 198 _ = x[zapi5RedistributAdd-14] 199 _ = x[zapi5RouterIDAdd-18] 200 _ = x[zapi5RouterIDUpdate-20] 201 _ = x[zapi5Hello-21] 202 _ = x[zapi5Frr5NexthopRegister-23] 203 _ = x[zapi5Frr5NexthopUnregister-24] 204 _ = x[zapi5Frr5NexthopUpdate-25] 205 _ = x[zapi5Frr5RedistributeRouteAdd-37] 206 _ = x[zapi5Frr5RedistributeRouteDel-38] 207 _ = x[zapi5Frr5VrfLabel-42] 208 _ = x[zapi5Frr5Ipv4NexthopLookupMRIB-47] 209 _ = x[zapi5Frr5LabelManagerConnect-52] 210 _ = x[zapi5Frr5LabelManagerConnectAsync-53] 211 _ = x[zapi5Frr5GetLabelChunk-54] 212 _ = x[zapi5Frr5ReleaseLabelChunk-55] 213 _ = x[zapi5Frr4NexthopRegister-22] 214 _ = x[zapi5Frr4NexthopUnregister-23] 215 _ = x[zapi5Frr4NexthopUpdate-24] 216 _ = x[zapi5Frr4RedistributeRouteAdd-36] 217 _ = x[zapi5Frr4RedistributeRouteDel-37] 218 _ = x[zapi5Frr4Ipv4NexthopLookupMRIB-45] 219 _ = x[zapi5Frr4LabelManagerConnect-50] 220 _ = x[zapi5Frr4GetLabelChunk-51] 221 _ = x[zapi5Frr4ReleaseLabelChunk-52] 222 _ = x[zapi4IPv4RouteAdd-6] 223 _ = x[zapi4IPv4RouteDelete-7] 224 _ = x[zapi4IPv6RouteAdd-8] 225 _ = x[zapi4IPv6RouteDelete-9] 226 _ = x[zapi4RedistributAdd-10] 227 _ = x[zapi4RouterIDAdd-14] 228 _ = x[zapi4RouterIDUpdate-16] 229 _ = x[zapi4Hello-17] 230 _ = x[zapi4NexthopRegister-18] 231 _ = x[zapi4NexthopUnregister-19] 232 _ = x[zapi4NexthopUpdate-20] 233 _ = x[zapi4RedistributeIPv4Add-32] 234 _ = x[zapi4RedistributeIPv4Del-33] 235 _ = x[zapi4RedistributeIPv6Add-34] 236 _ = x[zapi4RedistributeIPv6Del-35] 237 _ = x[zapi4LabelManagerConnect-52] 238 _ = x[zapi4GetLabelChunk-53] 239 _ = x[zapi4ReleaseLabelChunk-54] 240 _ = x[zapi3InterfaceAdd-1] 241 _ = x[zapi3InterfaceDelete-2] 242 _ = x[zapi3InterfaceAddressAdd-3] 243 _ = x[zapi3InterfaceAddressDelete-4] 244 _ = x[zapi3InterfaceUp-5] 245 _ = x[zapi3InterfaceDown-6] 246 _ = x[zapi3IPv4RouteAdd-7] 247 _ = x[zapi3IPv4RouteDelete-8] 248 _ = x[zapi3IPv6RouteAdd-9] 249 _ = x[zapi3IPv6RouteDelete-10] 250 _ = x[zapi3RedistributeAdd-11] 251 _ = x[zapi3IPv4NexthopLookup-15] 252 _ = x[zapi3IPv6NexthopLookup-16] 253 _ = x[zapi3IPv4ImportLookup-17] 254 _ = x[zapi3RouterIDAdd-20] 255 _ = x[zapi3RouterIDUpdate-22] 256 _ = x[zapi3Hello-23] 257 _ = x[zapi3Ipv4NexthopLookupMRIB-24] 258 _ = x[zapi3NexthopRegister-27] 259 _ = x[zapi3NexthopUnregister-28] 260 _ = x[zapi3NexthopUpdate-29] 261 } 262 263 const _APIType_name = "interfaceAddinterfaceDeleteinterfaceAddressAddinterfaceAddressDeleteinterfaceUpinterfaceDown_interfaceSetMaster_interfaceSetProtoDownRouteAddRouteDelete_routeNotifyOwnerredistributeAdd_redistributeDelete_redistributeDefaultAdd_redistributeDefaultDeleterouterIDAdd_routerIDDeleterouterIDUpdateHello_capabilitiesnexthopRegisternexthopUnregisternexthopUpdate_interfaceNBRAddressAdd_interfaceNBRAddressDelete_interfaceBFDDestUpdate_importRouteRegister_importRouteUnregister_importCheckUpdate_bfdDestRegister_bfdDestDeregister_bfdDestUpdate_bfdDestReplayRedistributeRouteAddRedistributeRouteDel_vrfUnregister_vrfAdd_vrfDeletevrfLabel_interfaceVRFUpdate_bfdClientRegister_bfdClientDeregister_interfaceEnableRADV_interfaceDisableRADVipv4NexthopLookupMRIB_interfaceLinkParams_mplsLabelsAdd_mplsLabelsDelete_mplsLabelsReplace_srPolicySet_srPolicyDelete_srPolicyNotifyStatus_ipmrRouteStatslabelManagerConnectlabelManagerConnectAsyncgetLabelChunkreleaseLabelChunk_fecRegister_fecUnregister_fecUpdate_advertiseDefaultGW_advertiseSviMACIP_advertiseSubnet_advertiseAllVNI_localESAdd_localESDel_remoteESVTEPAdd_remoteESVTEPDel_localESEVIAdd_localESEVIDel_vniAdd_vniDel_l3VNIAdd_l3VNIDel_remoteVTEPAdd_remoteVTEPDel_macIPAdd_macIPDel_ipPrefixRouteAdd_ipPrefixRouteDel_remoteMACIPAdd_remoteMACIPDel_duplicateAddrDetection_pwAdd_pwDelete_pwSet_pwUnset_pwStatusUpdate_ruleAdd_ruleDelete_ruleNotifyOwner_tableManagerConnect_getTableChunk_releaseTableChunk_ipSetCreate_ipSetDestroy_ipSetEntryAdd_ipSetEntryDelete_ipSetNotifyOwner_ipSetEntryNotifyOwner_ipTableAdd_ipTableDelete_ipTableNotifyOwner_vxlanFloodControl_vxlanSgAdd_vxlanSgDel_vxlanSgReplay_mlagProcessUp_mlagProcessDown_mlagClientRegister_mlagClientUnregister_mlagClientForwardMsg_nhgAdd_nhgDel_nhgNotifyOwner_nhgEvpnRemoteNhAdd_nhgEvpnRemoteNhDel_srv6LocatorAdd_srv6LocatorDelete_srv6ManagerGetLocatorChunk_srv6ManagerReleaseLocatorChunkzebraError_clientCapabilities_opaqueMessage_opaqueRegister_opaqueUnregister_neighDiscover_RouteNotifyRequest_ClientCloseNotify_NhrpNeighAdded_NhrpNeighRemoved_NhrpNeighGet_NhrpNeighRegister_NhrpNeighUnregister_NeighIPAdd_NeighIPDel_ConfigureArp_GreGet_GreUpdate_GreSourceSetBackwardIPv6RouteAddBackwardIPv6RouteDelete" 264 265 var _APIType_index = [...]uint16{0, 12, 27, 46, 68, 79, 92, 111, 133, 141, 152, 169, 184, 203, 226, 252, 263, 278, 292, 297, 310, 325, 342, 355, 378, 404, 427, 447, 469, 487, 503, 521, 535, 549, 569, 589, 603, 610, 620, 628, 647, 665, 685, 705, 726, 747, 767, 781, 798, 816, 828, 843, 864, 879, 898, 922, 935, 952, 964, 978, 988, 1007, 1025, 1041, 1057, 1068, 1079, 1095, 1111, 1125, 1139, 1146, 1153, 1162, 1171, 1185, 1199, 1208, 1217, 1234, 1251, 1266, 1281, 1304, 1310, 1319, 1325, 1333, 1348, 1356, 1367, 1383, 1403, 1417, 1435, 1447, 1460, 1474, 1491, 1508, 1530, 1541, 1555, 1574, 1592, 1603, 1614, 1628, 1642, 1658, 1677, 1698, 1719, 1726, 1733, 1748, 1767, 1786, 1801, 1819, 1846, 1877, 1887, 1906, 1920, 1935, 1952, 1966, 1985, 2003, 2018, 2035, 2048, 2066, 2086, 2097, 2108, 2121, 2128, 2138, 2151, 2171, 2194} 266 267 func (i APIType) String() string { 268 if i >= APIType(len(_APIType_index)-1) { 269 return "APIType(" + strconv.FormatInt(int64(i), 10) + ")" 270 } 271 return _APIType_name[_APIType_index[i]:_APIType_index[i+1]] 272 }