Add unit tests
This commit is contained in:
32
vendor/github.com/osrg/gobgp/internal/pkg/zebra/afi_string.go
generated
vendored
32
vendor/github.com/osrg/gobgp/internal/pkg/zebra/afi_string.go
generated
vendored
@@ -1,17 +1,27 @@
|
||||
// Code generated by "stringer -type=AFI"; DO NOT EDIT.
|
||||
// Code generated by "stringer -type=afi"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _AFI_name = "AFI_IPAFI_IP6AFI_ETHERAFI_MAX"
|
||||
|
||||
var _AFI_index = [...]uint8{0, 6, 13, 22, 29}
|
||||
|
||||
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]]
|
||||
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]]
|
||||
}
|
||||
|
||||
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/api_type_string.go
generated
vendored
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/api_type_string.go
generated
vendored
@@ -1,16 +0,0 @@
|
||||
// Code generated by "stringer -type=API_TYPE"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _API_TYPE_name = "FRR_ZAPI5_INTERFACE_ADDFRR_ZAPI5_INTERFACE_DELETEFRR_ZAPI5_INTERFACE_ADDRESS_ADDFRR_ZAPI5_INTERFACE_ADDRESS_DELETEFRR_ZAPI5_INTERFACE_UPFRR_ZAPI5_INTERFACE_DOWNFRR_ZAPI5_INTERFACE_SET_MASTERFRR_ZAPI5_ROUTE_ADDFRR_ZAPI5_ROUTE_DELETEFRR_ZAPI5_ROUTE_NOTIFY_OWNERFRR_ZAPI5_IPV4_ROUTE_ADDFRR_ZAPI5_IPV4_ROUTE_DELETEFRR_ZAPI5_IPV6_ROUTE_ADDFRR_ZAPI5_IPV6_ROUTE_DELETEFRR_ZAPI5_REDISTRIBUTE_ADDFRR_ZAPI5_REDISTRIBUTE_DELETEFRR_ZAPI5_REDISTRIBUTE_DEFAULT_ADDFRR_ZAPI5_REDISTRIBUTE_DEFAULT_DELETEFRR_ZAPI5_ROUTER_ID_ADDFRR_ZAPI5_ROUTER_ID_DELETEFRR_ZAPI5_ROUTER_ID_UPDATEFRR_ZAPI5_HELLOFRR_ZAPI5_CAPABILITIESFRR_ZAPI5_NEXTHOP_REGISTERFRR_ZAPI5_NEXTHOP_UNREGISTERFRR_ZAPI5_NEXTHOP_UPDATEFRR_ZAPI5_INTERFACE_NBR_ADDRESS_ADDFRR_ZAPI5_INTERFACE_NBR_ADDRESS_DELETEFRR_ZAPI5_INTERFACE_BFD_DEST_UPDATEFRR_ZAPI5_IMPORT_ROUTE_REGISTERFRR_ZAPI5_IMPORT_ROUTE_UNREGISTERFRR_ZAPI5_IMPORT_CHECK_UPDATEFRR_ZAPI5_IPV4_ROUTE_IPV6_NEXTHOP_ADDFRR_ZAPI5_BFD_DEST_REGISTERFRR_ZAPI5_BFD_DEST_DEREGISTERFRR_ZAPI5_BFD_DEST_UPDATEFRR_ZAPI5_BFD_DEST_REPLAYFRR_ZAPI5_REDISTRIBUTE_ROUTE_ADDFRR_ZAPI5_REDISTRIBUTE_ROUTE_DELFRR_ZAPI5_VRF_UNREGISTERFRR_ZAPI5_VRF_ADDFRR_ZAPI5_VRF_DELETEFRR_ZAPI5_VRF_LABELFRR_ZAPI5_INTERFACE_VRF_UPDATEFRR_ZAPI5_BFD_CLIENT_REGISTERFRR_ZAPI5_INTERFACE_ENABLE_RADVFRR_ZAPI5_INTERFACE_DISABLE_RADVFRR_ZAPI5_IPV4_NEXTHOP_LOOKUP_MRIBFRR_ZAPI5_INTERFACE_LINK_PARAMSFRR_ZAPI5_MPLS_LABELS_ADDFRR_ZAPI5_MPLS_LABELS_DELETEFRR_ZAPI5_IPMR_ROUTE_STATSFRR_ZAPI5_LABEL_MANAGER_CONNECTFRR_ZAPI5_GET_LABEL_CHUNKFRR_ZAPI5_RELEASE_LABEL_CHUNKFRR_ZAPI5_FEC_REGISTERFRR_ZAPI5_FEC_UNREGISTERFRR_ZAPI5_FEC_UPDATEFRR_ZAPI5_ADVERTISE_DEFAULT_GWFRR_ZAPI5_ADVERTISE_SUBNETFRR_ZAPI5_ADVERTISE_ALL_VNIFRR_ZAPI5_VNI_ADDFRR_ZAPI5_VNI_DELFRR_ZAPI5_L3VNI_ADDFRR_ZAPI5_L3VNI_DELFRR_ZAPI5_REMOTE_VTEP_ADDFRR_ZAPI5_REMOTE_VTEP_DELFRR_ZAPI5_MACIP_ADDFRR_ZAPI5_MACIP_DELFRR_ZAPI5_IP_PREFIX_ROUTE_ADDFRR_ZAPI5_IP_PREFIX_ROUTE_DELFRR_ZAPI5_REMOTE_MACIP_ADDFRR_ZAPI5_REMOTE_MACIP_DELFRR_ZAPI5_PW_ADDFRR_ZAPI5_PW_DELETEFRR_ZAPI5_PW_SETFRR_ZAPI5_PW_UNSETFRR_ZAPI5_PW_STATUS_UPDATEFRR_ZAPI5_RULE_ADDFRR_ZAPI5_RULE_DELETEFRR_ZAPI5_RULE_NOTIFY_OWNERFRR_ZAPI5_TABLE_MANAGER_CONNECTFRR_ZAPI5_GET_TABLE_CHUNKFRR_ZAPI5_RELEASE_TABLE_CHUNKFRR_ZAPI5_IPSET_CREATEFRR_ZAPI5_IPSET_DESTROYFRR_ZAPI5_IPSET_ENTRY_ADDFRR_ZAPI5_IPSET_ENTRY_DELETEFRR_ZAPI5_IPSET_NOTIFY_OWNERFRR_ZAPI5_IPSET_ENTRY_NOTIFY_OWNERFRR_ZAPI5_IPTABLE_ADDFRR_ZAPI5_IPTABLE_DELETEFRR_ZAPI5_IPTABLE_NOTIFY_OWNER"
|
||||
|
||||
var _API_TYPE_index = [...]uint16{0, 23, 49, 80, 114, 136, 160, 190, 209, 231, 259, 283, 310, 334, 361, 387, 416, 450, 487, 510, 536, 562, 577, 599, 625, 653, 677, 712, 750, 785, 816, 849, 878, 915, 942, 971, 996, 1021, 1053, 1085, 1109, 1126, 1146, 1165, 1195, 1224, 1255, 1287, 1321, 1352, 1377, 1405, 1431, 1462, 1487, 1516, 1538, 1562, 1582, 1612, 1638, 1665, 1682, 1699, 1718, 1737, 1762, 1787, 1806, 1825, 1854, 1883, 1909, 1935, 1951, 1970, 1986, 2004, 2030, 2048, 2069, 2096, 2127, 2152, 2181, 2203, 2226, 2251, 2279, 2307, 2341, 2362, 2386, 2416}
|
||||
|
||||
func (i API_TYPE) String() string {
|
||||
if i >= API_TYPE(len(_API_TYPE_index)-1) {
|
||||
return "API_TYPE(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _API_TYPE_name[_API_TYPE_index[i]:_API_TYPE_index[i+1]]
|
||||
}
|
||||
224
vendor/github.com/osrg/gobgp/internal/pkg/zebra/apitype_string.go
generated
vendored
Normal file
224
vendor/github.com/osrg/gobgp/internal/pkg/zebra/apitype_string.go
generated
vendored
Normal file
@@ -0,0 +1,224 @@
|
||||
// Code generated by "stringer -type=APIType"; 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[interfaceAdd-0]
|
||||
_ = x[interfaceDelete-1]
|
||||
_ = x[interfaceAddressAdd-2]
|
||||
_ = x[interfaceAddressDelete-3]
|
||||
_ = x[interfaceUp-4]
|
||||
_ = x[interfaceDown-5]
|
||||
_ = x[_interfaceSetMaster-6]
|
||||
_ = x[_interfaceSetProtoDown-7]
|
||||
_ = x[RouteAdd-8]
|
||||
_ = x[RouteDelete-9]
|
||||
_ = x[_routeNotifyOwner-10]
|
||||
_ = x[redistributeAdd-11]
|
||||
_ = x[_redistributeDelete-12]
|
||||
_ = x[_redistributeDefaultAdd-13]
|
||||
_ = x[_redistributeDefaultDelete-14]
|
||||
_ = x[routerIDAdd-15]
|
||||
_ = x[_routerIDDelete-16]
|
||||
_ = x[routerIDUpdate-17]
|
||||
_ = x[hello-18]
|
||||
_ = x[_capabilities-19]
|
||||
_ = x[nexthopRegister-20]
|
||||
_ = x[nexthopUnregister-21]
|
||||
_ = x[nexthopUpdate-22]
|
||||
_ = x[_interfaceNBRAddressAdd-23]
|
||||
_ = x[_interfaceNBRAddressDelete-24]
|
||||
_ = x[_interfaceBFDDestUpdate-25]
|
||||
_ = x[_importRouteRegister-26]
|
||||
_ = x[_importRouteUnregister-27]
|
||||
_ = x[_importCheckUpdate-28]
|
||||
_ = x[_bfdDestRegister-29]
|
||||
_ = x[_bfdDestDeregister-30]
|
||||
_ = x[_bfdDestUpdate-31]
|
||||
_ = x[_bfdDestReplay-32]
|
||||
_ = x[redistributeRouteAdd-33]
|
||||
_ = x[redistributeRouteDel-34]
|
||||
_ = x[_vrfUnregister-35]
|
||||
_ = x[_vrfAdd-36]
|
||||
_ = x[_vrfDelete-37]
|
||||
_ = x[vrfLabel-38]
|
||||
_ = x[_interfaceVRFUpdate-39]
|
||||
_ = x[_bfdClientRegister-40]
|
||||
_ = x[_bfdClientDeregister-41]
|
||||
_ = x[_interfaceEnableRADV-42]
|
||||
_ = x[_interfaceDisableRADV-43]
|
||||
_ = x[ipv4NexthopLookupMRIB-44]
|
||||
_ = x[_interfaceLinkParams-45]
|
||||
_ = x[_mplsLabelsAdd-46]
|
||||
_ = x[_mplsLabelsDelete-47]
|
||||
_ = x[_mplsLabelsReplace-48]
|
||||
_ = x[_ipmrRouteStats-49]
|
||||
_ = x[labelManagerConnect-50]
|
||||
_ = x[labelManagerConnectAsync-51]
|
||||
_ = x[getLabelChunk-52]
|
||||
_ = x[releaseLabelChunk-53]
|
||||
_ = x[_fecRegister-54]
|
||||
_ = x[_fecUnregister-55]
|
||||
_ = x[_fecUpdate-56]
|
||||
_ = x[_advertiseDefaultGW-57]
|
||||
_ = x[_advertiseSviMACIP-58]
|
||||
_ = x[_advertiseSubnet-59]
|
||||
_ = x[_advertiseAllVNI-60]
|
||||
_ = x[_localESAdd-61]
|
||||
_ = x[_localESDel-62]
|
||||
_ = x[_vniAdd-63]
|
||||
_ = x[_vniDel-64]
|
||||
_ = x[_l3VNIAdd-65]
|
||||
_ = x[_l3VNIDel-66]
|
||||
_ = x[_remoteVTEPAdd-67]
|
||||
_ = x[_remoteVTEPDel-68]
|
||||
_ = x[_macIPAdd-69]
|
||||
_ = x[_macIPDel-70]
|
||||
_ = x[_ipPrefixRouteAdd-71]
|
||||
_ = x[_ipPrefixRouteDel-72]
|
||||
_ = x[_remoteMACIPAdd-73]
|
||||
_ = x[_remoteMACIPDel-74]
|
||||
_ = x[_duplicateAddrDetection-75]
|
||||
_ = x[_pwAdd-76]
|
||||
_ = x[_pwDelete-77]
|
||||
_ = x[_pwSet-78]
|
||||
_ = x[_pwUnset-79]
|
||||
_ = x[_pwStatusUpdate-80]
|
||||
_ = x[_ruleAdd-81]
|
||||
_ = x[_ruleDelete-82]
|
||||
_ = x[_ruleNotifyOwner-83]
|
||||
_ = x[_tableManagerConnect-84]
|
||||
_ = x[_getTableChunk-85]
|
||||
_ = x[_releaseTableChunk-86]
|
||||
_ = x[_ipSetCreate-87]
|
||||
_ = x[_ipSetDestroy-88]
|
||||
_ = x[_ipSetEntryAdd-89]
|
||||
_ = x[_ipSetEntryDelete-90]
|
||||
_ = x[_ipSetNotifyOwner-91]
|
||||
_ = x[_ipSetEntryNotifyOwner-92]
|
||||
_ = x[_ipTableAdd-93]
|
||||
_ = x[_ipTableDelete-94]
|
||||
_ = x[_ipTableNotifyOwner-95]
|
||||
_ = x[_vxlanFloodControl-96]
|
||||
_ = x[_vxlanSgAdd-97]
|
||||
_ = x[_vxlanSgDel-98]
|
||||
_ = x[_vxlanSgReplay-99]
|
||||
_ = x[_mlagProcessUp-100]
|
||||
_ = x[_mlagProcessDown-101]
|
||||
_ = x[_mlagClientRegister-102]
|
||||
_ = x[_mlagClientUnregister-103]
|
||||
_ = x[_mlagClientForwardMsg-104]
|
||||
_ = x[zebraError-105]
|
||||
_ = x[_clientCapabilities-106]
|
||||
_ = x[BackwardIPv6RouteAdd-107]
|
||||
_ = x[BackwardIPv6RouteDelete-108]
|
||||
_ = x[zapi6Frr7dot2MinDifferentAPIType-48]
|
||||
_ = x[zapi5ClMinDifferentAPIType-19]
|
||||
_ = x[zapi5MinDifferentAPIType-7]
|
||||
_ = x[zapi4MinDifferentAPIType-6]
|
||||
_ = x[zapi3MinDifferentAPIType-0]
|
||||
_ = x[zapi6Frr7dot2LabelManagerConnect-49]
|
||||
_ = x[zapi6Frr7dot2LabelManagerConnectAsync-50]
|
||||
_ = x[zapi6Frr7dot2GetLabelChunk-51]
|
||||
_ = x[zapi6Frr7dot2ReleaseLabelChunk-52]
|
||||
_ = x[zapi6Frr7RouteAdd-7]
|
||||
_ = x[zapi6Frr7RouteDelete-8]
|
||||
_ = x[zapi6Frr7RedistributAdd-10]
|
||||
_ = x[zapi6Frr7RouterIDAdd-14]
|
||||
_ = x[zapi6Frr7RouterIDUpdate-16]
|
||||
_ = x[zapi6Frr7Hello-17]
|
||||
_ = x[zapi6Frr7NexthopRegister-19]
|
||||
_ = x[zapi6Frr7NexthopUnregister-20]
|
||||
_ = x[zapi6Frr7NexthopUpdate-21]
|
||||
_ = x[zapi6Frr7RedistributeRouteAdd-32]
|
||||
_ = x[zapi6Frr7RedistributeRouteDel-33]
|
||||
_ = x[zapi6Frr7VrfLabel-37]
|
||||
_ = x[zapi6Frr7Ipv4NexthopLookupMRIB-43]
|
||||
_ = x[zapi6Frr7LabelManagerConnect-48]
|
||||
_ = x[zapi6Frr7LabelManagerConnectAsync-49]
|
||||
_ = x[zapi6Frr7GetLabelChunk-50]
|
||||
_ = x[zapi6Frr7ReleaseLabelChunk-51]
|
||||
_ = x[zapi5ClIpv4NexthopLookupMRIB-42]
|
||||
_ = x[zapi5ClLabelManagerConnect-47]
|
||||
_ = x[zapi5ClGetLabelChunk-48]
|
||||
_ = x[zapi5ClReleaseLabelChunk-49]
|
||||
_ = x[zapi5RedistributAdd-14]
|
||||
_ = x[zapi5RouterIDAdd-18]
|
||||
_ = x[zapi5RouterIDUpdate-20]
|
||||
_ = x[zapi5Hello-21]
|
||||
_ = x[zapi5Frr5NexthopRegister-23]
|
||||
_ = x[zapi5Frr5NexthopUnregister-24]
|
||||
_ = x[zapi5Frr5NexthopUpdate-25]
|
||||
_ = x[zapi5Frr5RedistributeRouteAdd-37]
|
||||
_ = x[zapi5Frr5RedistributeRouteDel-38]
|
||||
_ = x[zapi5Frr5VrfLabel-42]
|
||||
_ = x[zapi5Frr5Ipv4NexthopLookupMRIB-47]
|
||||
_ = x[zapi5Frr5LabelManagerConnect-52]
|
||||
_ = x[zapi5Frr5LabelManagerConnectAsync-53]
|
||||
_ = x[zapi5Frr5GetLabelChunk-54]
|
||||
_ = x[zapi5Frr5ReleaseLabelChunk-55]
|
||||
_ = x[zapi5Frr4NexthopRegister-22]
|
||||
_ = x[zapi5Frr4NexthopUnregister-23]
|
||||
_ = x[zapi5Frr4NexthopUpdate-24]
|
||||
_ = x[zapi5Frr4RedistributeRouteAdd-36]
|
||||
_ = x[zapi5Frr4RedistributeRouteDel-37]
|
||||
_ = x[zapi5Frr4Ipv4NexthopLookupMRIB-45]
|
||||
_ = x[zapi5Frr4LabelManagerConnect-50]
|
||||
_ = x[zapi5Frr4GetLabelChunk-51]
|
||||
_ = x[zapi5Frr4ReleaseLabelChunk-52]
|
||||
_ = x[zapi4IPv4RouteAdd-6]
|
||||
_ = x[zapi4IPv4RouteDelete-7]
|
||||
_ = x[zapi4IPv6RouteAdd-8]
|
||||
_ = x[zapi4IPv6RouteDelete-9]
|
||||
_ = x[zapi4RedistributAdd-10]
|
||||
_ = x[zapi4RouterIDAdd-14]
|
||||
_ = x[zapi4RouterIDUpdate-16]
|
||||
_ = x[zapi4Hello-17]
|
||||
_ = x[zapi4NexthopRegister-18]
|
||||
_ = x[zapi4NexthopUnregister-19]
|
||||
_ = x[zapi4NexthopUpdate-20]
|
||||
_ = x[zapi4RedistributeIPv4Add-32]
|
||||
_ = x[zapi4RedistributeIPv4Del-33]
|
||||
_ = x[zapi4RedistributeIPv6Add-34]
|
||||
_ = x[zapi4RedistributeIPv6Del-35]
|
||||
_ = x[zapi4LabelManagerConnect-52]
|
||||
_ = x[zapi4GetLabelChunk-53]
|
||||
_ = x[zapi4ReleaseLabelChunk-54]
|
||||
_ = x[zapi3InterfaceAdd-1]
|
||||
_ = x[zapi3InterfaceDelete-2]
|
||||
_ = x[zapi3InterfaceAddressAdd-3]
|
||||
_ = x[zapi3InterfaceAddressDelete-4]
|
||||
_ = x[zapi3InterfaceUp-5]
|
||||
_ = x[zapi3InterfaceDown-6]
|
||||
_ = x[zapi3IPv4RouteAdd-7]
|
||||
_ = x[zapi3IPv4RouteDelete-8]
|
||||
_ = x[zapi3IPv6RouteAdd-9]
|
||||
_ = x[zapi3IPv6RouteDelete-10]
|
||||
_ = x[zapi3RedistributeAdd-11]
|
||||
_ = x[zapi3IPv4NexthopLookup-15]
|
||||
_ = x[zapi3IPv6NexthopLookup-16]
|
||||
_ = x[zapi3IPv4ImportLookup-17]
|
||||
_ = x[zapi3RouterIDAdd-20]
|
||||
_ = x[zapi3RouterIDUpdate-22]
|
||||
_ = x[zapi3Hello-23]
|
||||
_ = x[zapi3Ipv4NexthopLookupMRIB-24]
|
||||
_ = x[zapi3NexthopRegister-27]
|
||||
_ = x[zapi3NexthopUnregister-28]
|
||||
_ = x[zapi3NexthopUpdate-29]
|
||||
}
|
||||
|
||||
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_ipmrRouteStatslabelManagerConnectlabelManagerConnectAsyncgetLabelChunkreleaseLabelChunk_fecRegister_fecUnregister_fecUpdate_advertiseDefaultGW_advertiseSviMACIP_advertiseSubnet_advertiseAllVNI_localESAdd_localESDel_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_mlagClientForwardMsgzebraError_clientCapabilitiesBackwardIPv6RouteAddBackwardIPv6RouteDelete"
|
||||
|
||||
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, 831, 850, 874, 887, 904, 916, 930, 940, 959, 977, 993, 1009, 1020, 1031, 1038, 1045, 1054, 1063, 1077, 1091, 1100, 1109, 1126, 1143, 1158, 1173, 1196, 1202, 1211, 1217, 1225, 1240, 1248, 1259, 1275, 1295, 1309, 1327, 1339, 1352, 1366, 1383, 1400, 1422, 1433, 1447, 1466, 1484, 1495, 1506, 1520, 1534, 1550, 1569, 1590, 1611, 1621, 1640, 1660, 1683}
|
||||
|
||||
func (i APIType) String() string {
|
||||
if i >= APIType(len(_APIType_index)-1) {
|
||||
return "APIType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _APIType_name[_APIType_index[i]:_APIType_index[i+1]]
|
||||
}
|
||||
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/link_type_string.go
generated
vendored
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/link_type_string.go
generated
vendored
@@ -1,16 +0,0 @@
|
||||
// Code generated by "stringer -type=LINK_TYPE"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _LINK_TYPE_name = "LINK_TYPE_UNKNOWNLINK_TYPE_ETHERLINK_TYPE_EETHERLINK_TYPE_AX25LINK_TYPE_PRONETLINK_TYPE_IEEE802LINK_TYPE_ARCNETLINK_TYPE_APPLETLKLINK_TYPE_DLCILINK_TYPE_ATMLINK_TYPE_METRICOMLINK_TYPE_IEEE1394LINK_TYPE_EUI64LINK_TYPE_INFINIBANDLINK_TYPE_SLIPLINK_TYPE_CSLIPLINK_TYPE_SLIP6LINK_TYPE_CSLIP6LINK_TYPE_RSRVDLINK_TYPE_ADAPTLINK_TYPE_ROSELINK_TYPE_X25LINK_TYPE_PPPLINK_TYPE_CHDLCLINK_TYPE_LAPBLINK_TYPE_RAWHDLCLINK_TYPE_IPIPLINK_TYPE_IPIP6LINK_TYPE_FRADLINK_TYPE_SKIPLINK_TYPE_LOOPBACKLINK_TYPE_LOCALTLKLINK_TYPE_FDDILINK_TYPE_SITLINK_TYPE_IPDDPLINK_TYPE_IPGRELINK_TYPE_IP6GRELINK_TYPE_PIMREGLINK_TYPE_HIPPILINK_TYPE_ECONETLINK_TYPE_IRDALINK_TYPE_FCPPLINK_TYPE_FCALLINK_TYPE_FCPLLINK_TYPE_FCFABRICLINK_TYPE_IEEE802_TRLINK_TYPE_IEEE80211LINK_TYPE_IEEE80211_RADIOTAPLINK_TYPE_IEEE802154LINK_TYPE_IEEE802154_PHY"
|
||||
|
||||
var _LINK_TYPE_index = [...]uint16{0, 17, 32, 48, 62, 78, 95, 111, 129, 143, 156, 174, 192, 207, 227, 241, 256, 271, 287, 302, 317, 331, 344, 357, 372, 386, 403, 417, 432, 446, 460, 478, 496, 510, 523, 538, 553, 569, 585, 600, 616, 630, 644, 658, 672, 690, 710, 729, 757, 777, 801}
|
||||
|
||||
func (i LINK_TYPE) String() string {
|
||||
if i >= LINK_TYPE(len(_LINK_TYPE_index)-1) {
|
||||
return "LINK_TYPE(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _LINK_TYPE_name[_LINK_TYPE_index[i]:_LINK_TYPE_index[i+1]]
|
||||
}
|
||||
72
vendor/github.com/osrg/gobgp/internal/pkg/zebra/linktype_string.go
generated
vendored
Normal file
72
vendor/github.com/osrg/gobgp/internal/pkg/zebra/linktype_string.go
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Code generated by "stringer -type=linkType"; 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[linkTypeUnknown-0]
|
||||
_ = x[linkTypeEther-1]
|
||||
_ = x[linkTypeEEther-2]
|
||||
_ = x[linkTypeAX25-3]
|
||||
_ = x[linkTypePRONET-4]
|
||||
_ = x[linkTypeIeee802-5]
|
||||
_ = x[linkTypeARCNET-6]
|
||||
_ = x[linkTypeAPPLETLK-7]
|
||||
_ = x[linkTypeDLCI-8]
|
||||
_ = x[linkTypeATM-9]
|
||||
_ = x[linkTypeMetricOM-10]
|
||||
_ = x[linkTypeIeee1394-11]
|
||||
_ = x[linkTypeEUI64-12]
|
||||
_ = x[linkTypeINFINIBAND-13]
|
||||
_ = x[linkTypeSLIP-14]
|
||||
_ = x[linkTypeCSLIP-15]
|
||||
_ = x[linkTypeSLIP6-16]
|
||||
_ = x[linkTypeCSLIP6-17]
|
||||
_ = x[linkTypeRSRVD-18]
|
||||
_ = x[linkTypeADAPT-19]
|
||||
_ = x[linkTypeROSE-20]
|
||||
_ = x[linkTypeX25-21]
|
||||
_ = x[linkTypePPP-22]
|
||||
_ = x[linkTypeCHDLC-23]
|
||||
_ = x[linkTypeLAPB-24]
|
||||
_ = x[linkTypeRAWHDLC-25]
|
||||
_ = x[linkTypeIPIP-26]
|
||||
_ = x[linkTypeIPIP6-27]
|
||||
_ = x[linkTypeFRAD-28]
|
||||
_ = x[linkTypeSKIP-29]
|
||||
_ = x[linkTypeLOOPBACK-30]
|
||||
_ = x[linkTypeLOCALTLK-31]
|
||||
_ = x[linkTypeFDDI-32]
|
||||
_ = x[linkTypeSIT-33]
|
||||
_ = x[linkTypeIPDDP-34]
|
||||
_ = x[linkTypeIPGRE-35]
|
||||
_ = x[linkTypeIP6GRE-36]
|
||||
_ = x[linkTypePIMREG-37]
|
||||
_ = x[linkTypeHIPPI-38]
|
||||
_ = x[linkTypeECONET-39]
|
||||
_ = x[linkTypeIRDA-40]
|
||||
_ = x[linkTypeFCPP-41]
|
||||
_ = x[linkTypeFCAL-42]
|
||||
_ = x[linkTypeFCPL-43]
|
||||
_ = x[linkTypeFCFABRIC-44]
|
||||
_ = x[linkTypeIeee802Tr-45]
|
||||
_ = x[linkTypeIeee80211-46]
|
||||
_ = x[linkTypeIeee80211RadioTap-47]
|
||||
_ = x[linkTypeIeee802154-48]
|
||||
_ = x[linkTypeIeee802154Phy-49]
|
||||
}
|
||||
|
||||
const _linkType_name = "linkTypeUnknownlinkTypeEtherlinkTypeEEtherlinkTypeAX25linkTypePRONETlinkTypeIeee802linkTypeARCNETlinkTypeAPPLETLKlinkTypeDLCIlinkTypeATMlinkTypeMetricOMlinkTypeIeee1394linkTypeEUI64linkTypeINFINIBANDlinkTypeSLIPlinkTypeCSLIPlinkTypeSLIP6linkTypeCSLIP6linkTypeRSRVDlinkTypeADAPTlinkTypeROSElinkTypeX25linkTypePPPlinkTypeCHDLClinkTypeLAPBlinkTypeRAWHDLClinkTypeIPIPlinkTypeIPIP6linkTypeFRADlinkTypeSKIPlinkTypeLOOPBACKlinkTypeLOCALTLKlinkTypeFDDIlinkTypeSITlinkTypeIPDDPlinkTypeIPGRElinkTypeIP6GRElinkTypePIMREGlinkTypeHIPPIlinkTypeECONETlinkTypeIRDAlinkTypeFCPPlinkTypeFCALlinkTypeFCPLlinkTypeFCFABRIClinkTypeIeee802TrlinkTypeIeee80211linkTypeIeee80211RadioTaplinkTypeIeee802154linkTypeIeee802154Phy"
|
||||
|
||||
var _linkType_index = [...]uint16{0, 15, 28, 42, 54, 68, 83, 97, 113, 125, 136, 152, 168, 181, 199, 211, 224, 237, 251, 264, 277, 289, 300, 311, 324, 336, 351, 363, 376, 388, 400, 416, 432, 444, 455, 468, 481, 495, 509, 522, 536, 548, 560, 572, 584, 600, 617, 634, 659, 677, 698}
|
||||
|
||||
func (i linkType) String() string {
|
||||
if i >= linkType(len(_linkType_index)-1) {
|
||||
return "linkType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _linkType_name[_linkType_index[i]:_linkType_index[i+1]]
|
||||
}
|
||||
28
vendor/github.com/osrg/gobgp/internal/pkg/zebra/lsptype_string.go
generated
vendored
Normal file
28
vendor/github.com/osrg/gobgp/internal/pkg/zebra/lsptype_string.go
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by "stringer -type=lspTYPE"; 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[lspNone-0]
|
||||
_ = x[lspStatic-1]
|
||||
_ = x[lspLDP-2]
|
||||
_ = x[lspBGP-3]
|
||||
_ = x[lspSR-4]
|
||||
_ = x[lspSHARP-5]
|
||||
}
|
||||
|
||||
const _lspTYPE_name = "lspNonelspStaticlspLDPlspBGPlspSRlspSHARP"
|
||||
|
||||
var _lspTYPE_index = [...]uint8{0, 7, 16, 22, 28, 33, 41}
|
||||
|
||||
func (i lspTYPE) String() string {
|
||||
if i >= lspTYPE(len(_lspTYPE_index)-1) {
|
||||
return "lspTYPE(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _lspTYPE_name[_lspTYPE_index[i]:_lspTYPE_index[i+1]]
|
||||
}
|
||||
41
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthop_flag_string.go
generated
vendored
41
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthop_flag_string.go
generated
vendored
@@ -1,41 +0,0 @@
|
||||
// Code generated by "stringer -type=NEXTHOP_FLAG"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const (
|
||||
_NEXTHOP_FLAG_name_0 = "NEXTHOP_FLAG_ACTIVENEXTHOP_FLAG_FIB"
|
||||
_NEXTHOP_FLAG_name_1 = "NEXTHOP_FLAG_RECURSIVE"
|
||||
_NEXTHOP_FLAG_name_2 = "NEXTHOP_FLAG_ONLINK"
|
||||
_NEXTHOP_FLAG_name_3 = "NEXTHOP_FLAG_MATCHED"
|
||||
_NEXTHOP_FLAG_name_4 = "NEXTHOP_FLAG_FILTERED"
|
||||
_NEXTHOP_FLAG_name_5 = "NEXTHOP_FLAG_DUPLICATE"
|
||||
_NEXTHOP_FLAG_name_6 = "NEXTHOP_FLAG_EVPN_RVTEP"
|
||||
)
|
||||
|
||||
var (
|
||||
_NEXTHOP_FLAG_index_0 = [...]uint8{0, 19, 35}
|
||||
)
|
||||
|
||||
func (i NEXTHOP_FLAG) String() string {
|
||||
switch {
|
||||
case 1 <= i && i <= 2:
|
||||
i -= 1
|
||||
return _NEXTHOP_FLAG_name_0[_NEXTHOP_FLAG_index_0[i]:_NEXTHOP_FLAG_index_0[i+1]]
|
||||
case i == 4:
|
||||
return _NEXTHOP_FLAG_name_1
|
||||
case i == 8:
|
||||
return _NEXTHOP_FLAG_name_2
|
||||
case i == 16:
|
||||
return _NEXTHOP_FLAG_name_3
|
||||
case i == 32:
|
||||
return _NEXTHOP_FLAG_name_4
|
||||
case i == 64:
|
||||
return _NEXTHOP_FLAG_name_5
|
||||
case i == 128:
|
||||
return _NEXTHOP_FLAG_name_6
|
||||
default:
|
||||
return "NEXTHOP_FLAG(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
17
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthop_type_string.go
generated
vendored
17
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthop_type_string.go
generated
vendored
@@ -1,17 +0,0 @@
|
||||
// Code generated by "stringer -type=NEXTHOP_TYPE"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _NEXTHOP_TYPE_name = "FRR_NEXTHOP_TYPE_IFINDEXFRR_NEXTHOP_TYPE_IPV4FRR_NEXTHOP_TYPE_IPV4_IFINDEXFRR_NEXTHOP_TYPE_IPV6FRR_NEXTHOP_TYPE_IPV6_IFINDEXFRR_NEXTHOP_TYPE_BLACKHOLENEXTHOP_TYPE_IPV6_IFINDEXNEXTHOP_TYPE_IPV6_IFNAMENEXTHOP_TYPE_BLACKHOLE"
|
||||
|
||||
var _NEXTHOP_TYPE_index = [...]uint8{0, 24, 45, 74, 95, 124, 150, 175, 199, 221}
|
||||
|
||||
func (i NEXTHOP_TYPE) String() string {
|
||||
i -= 1
|
||||
if i >= NEXTHOP_TYPE(len(_NEXTHOP_TYPE_index)-1) {
|
||||
return "NEXTHOP_TYPE(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _NEXTHOP_TYPE_name[_NEXTHOP_TYPE_index[i]:_NEXTHOP_TYPE_index[i+1]]
|
||||
}
|
||||
55
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthopflag_string.go
generated
vendored
Normal file
55
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthopflag_string.go
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
// Code generated by "stringer -type=nexthopFlag"; 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[nexthopFlagActive-1]
|
||||
_ = x[nexthopFlagFIB-2]
|
||||
_ = x[nexthopFlagRecursive-4]
|
||||
_ = x[nexthopFlagOnlink-8]
|
||||
_ = x[nexthopFlagMatched-16]
|
||||
_ = x[nexthopFlagFiltered-32]
|
||||
_ = x[nexthopFlagDuplicate-64]
|
||||
_ = x[nexthopFlagEvpnRvtep-128]
|
||||
}
|
||||
|
||||
const (
|
||||
_nexthopFlag_name_0 = "nexthopFlagActivenexthopFlagFIB"
|
||||
_nexthopFlag_name_1 = "nexthopFlagRecursive"
|
||||
_nexthopFlag_name_2 = "nexthopFlagOnlink"
|
||||
_nexthopFlag_name_3 = "nexthopFlagMatched"
|
||||
_nexthopFlag_name_4 = "nexthopFlagFiltered"
|
||||
_nexthopFlag_name_5 = "nexthopFlagDuplicate"
|
||||
_nexthopFlag_name_6 = "nexthopFlagEvpnRvtep"
|
||||
)
|
||||
|
||||
var (
|
||||
_nexthopFlag_index_0 = [...]uint8{0, 17, 31}
|
||||
)
|
||||
|
||||
func (i nexthopFlag) String() string {
|
||||
switch {
|
||||
case 1 <= i && i <= 2:
|
||||
i -= 1
|
||||
return _nexthopFlag_name_0[_nexthopFlag_index_0[i]:_nexthopFlag_index_0[i+1]]
|
||||
case i == 4:
|
||||
return _nexthopFlag_name_1
|
||||
case i == 8:
|
||||
return _nexthopFlag_name_2
|
||||
case i == 16:
|
||||
return _nexthopFlag_name_3
|
||||
case i == 32:
|
||||
return _nexthopFlag_name_4
|
||||
case i == 64:
|
||||
return _nexthopFlag_name_5
|
||||
case i == 128:
|
||||
return _nexthopFlag_name_6
|
||||
default:
|
||||
return "nexthopFlag(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
37
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthoptype_string.go
generated
vendored
Normal file
37
vendor/github.com/osrg/gobgp/internal/pkg/zebra/nexthoptype_string.go
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// Code generated by "stringer -type=nexthopType"; 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[nexthopTypeIFIndex-1]
|
||||
_ = x[nexthopTypeIPv4-2]
|
||||
_ = x[nexthopTypeIPv4IFIndex-3]
|
||||
_ = x[nexthopTypeIPv6-4]
|
||||
_ = x[nexthopTypeIPv6IFIndex-5]
|
||||
_ = x[nexthopTypeBlackhole-6]
|
||||
_ = x[nexthopTypeIFName-2]
|
||||
_ = x[backwardNexthopTypeIPv4-3]
|
||||
_ = x[backwardNexthopTypeIPv4IFIndex-4]
|
||||
_ = x[nexthopTypeIPv4IFName-5]
|
||||
_ = x[backwardNexthopTypeIPv6-6]
|
||||
_ = x[backwardNexthopTypeIPv6IFIndex-7]
|
||||
_ = x[nexthopTypeIPv6IFName-8]
|
||||
_ = x[backwardNexthopTypeBlackhole-9]
|
||||
}
|
||||
|
||||
const _nexthopType_name = "nexthopTypeIFIndexnexthopTypeIPv4nexthopTypeIPv4IFIndexnexthopTypeIPv6nexthopTypeIPv6IFIndexnexthopTypeBlackholebackwardNexthopTypeIPv6IFIndexnexthopTypeIPv6IFNamebackwardNexthopTypeBlackhole"
|
||||
|
||||
var _nexthopType_index = [...]uint8{0, 18, 33, 55, 70, 92, 112, 142, 163, 191}
|
||||
|
||||
func (i nexthopType) String() string {
|
||||
i -= 1
|
||||
if i >= nexthopType(len(_nexthopType_index)-1) {
|
||||
return "nexthopType(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _nexthopType_name[_nexthopType_index[i]:_nexthopType_index[i+1]]
|
||||
}
|
||||
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptm_enable_string.go
generated
vendored
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptm_enable_string.go
generated
vendored
@@ -1,16 +0,0 @@
|
||||
// Code generated by "stringer -type=PTM_ENABLE"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _PTM_ENABLE_name = "PTM_ENABLE_OFFPTM_ENABLE_ONPTM_ENABLE_UNSPEC"
|
||||
|
||||
var _PTM_ENABLE_index = [...]uint8{0, 14, 27, 44}
|
||||
|
||||
func (i PTM_ENABLE) String() string {
|
||||
if i >= PTM_ENABLE(len(_PTM_ENABLE_index)-1) {
|
||||
return "PTM_ENABLE(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _PTM_ENABLE_name[_PTM_ENABLE_index[i]:_PTM_ENABLE_index[i+1]]
|
||||
}
|
||||
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptm_status_string.go
generated
vendored
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptm_status_string.go
generated
vendored
@@ -1,16 +0,0 @@
|
||||
// Code generated by "stringer -type=PTM_STATUS"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _PTM_STATUS_name = "PTM_STATUS_DOWNPTM_STATUS_UPPTM_STATUS_UNKNOWN"
|
||||
|
||||
var _PTM_STATUS_index = [...]uint8{0, 15, 28, 46}
|
||||
|
||||
func (i PTM_STATUS) String() string {
|
||||
if i >= PTM_STATUS(len(_PTM_STATUS_index)-1) {
|
||||
return "PTM_STATUS(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _PTM_STATUS_name[_PTM_STATUS_index[i]:_PTM_STATUS_index[i+1]]
|
||||
}
|
||||
25
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptmenable_string.go
generated
vendored
Normal file
25
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptmenable_string.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// Code generated by "stringer -type=ptmEnable"; 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[ptmEnableOff-0]
|
||||
_ = x[ptmEnableOn-1]
|
||||
_ = x[ptmEnableUnspec-2]
|
||||
}
|
||||
|
||||
const _ptmEnable_name = "ptmEnableOffptmEnableOnptmEnableUnspec"
|
||||
|
||||
var _ptmEnable_index = [...]uint8{0, 12, 23, 38}
|
||||
|
||||
func (i ptmEnable) String() string {
|
||||
if i >= ptmEnable(len(_ptmEnable_index)-1) {
|
||||
return "ptmEnable(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _ptmEnable_name[_ptmEnable_index[i]:_ptmEnable_index[i+1]]
|
||||
}
|
||||
25
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptmstatus_string.go
generated
vendored
Normal file
25
vendor/github.com/osrg/gobgp/internal/pkg/zebra/ptmstatus_string.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// Code generated by "stringer -type=ptmStatus"; 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[ptmStatusDown-0]
|
||||
_ = x[ptmStatusUp-1]
|
||||
_ = x[ptmStatusUnknown-2]
|
||||
}
|
||||
|
||||
const _ptmStatus_name = "ptmStatusDownptmStatusUpptmStatusUnknown"
|
||||
|
||||
var _ptmStatus_index = [...]uint8{0, 13, 24, 40}
|
||||
|
||||
func (i ptmStatus) String() string {
|
||||
if i >= ptmStatus(len(_ptmStatus_index)-1) {
|
||||
return "ptmStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _ptmStatus_name[_ptmStatus_index[i]:_ptmStatus_index[i+1]]
|
||||
}
|
||||
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/route_type_string.go
generated
vendored
16
vendor/github.com/osrg/gobgp/internal/pkg/zebra/route_type_string.go
generated
vendored
@@ -1,16 +0,0 @@
|
||||
// Code generated by "stringer -type=ROUTE_TYPE"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _ROUTE_TYPE_name = "FRR_ZAPI5_ROUTE_SYSTEMFRR_ZAPI5_ROUTE_KERNELFRR_ZAPI5_ROUTE_CONNECTFRR_ZAPI5_ROUTE_STATICFRR_ZAPI5_ROUTE_RIPFRR_ZAPI5_ROUTE_RIPNGFRR_ZAPI5_ROUTE_OSPFFRR_ZAPI5_ROUTE_OSPF6FRR_ZAPI5_ROUTE_ISISFRR_ZAPI5_ROUTE_BGPFRR_ZAPI5_ROUTE_PIMFRR_ZAPI5_ROUTE_EIGRPFRR_ZAPI5_ROUTE_NHRPFRR_ZAPI5_ROUTE_HSLSFRR_ZAPI5_ROUTE_OLSRFRR_ZAPI5_ROUTE_TABLEFRR_ZAPI5_ROUTE_LDPFRR_ZAPI5_ROUTE_VNCFRR_ZAPI5_ROUTE_VNC_DIRECTFRR_ZAPI5_ROUTE_VNC_DIRECT_RHFRR_ZAPI5_ROUTE_BGP_DIRECTFRR_ZAPI5_ROUTE_BGP_DIRECT_EXTFRR_ZAPI5_ROUTE_BABELFRR_ZAPI5_ROUTE_SHARPFRR_ZAPI5_ROUTE_PBRFRR_ZAPI5_ROUTE_ALLFRR_ZAPI5_ROUTE_MAX"
|
||||
|
||||
var _ROUTE_TYPE_index = [...]uint16{0, 22, 44, 67, 89, 108, 129, 149, 170, 190, 209, 228, 249, 269, 289, 309, 330, 349, 368, 394, 423, 449, 479, 500, 521, 540, 559, 578}
|
||||
|
||||
func (i ROUTE_TYPE) String() string {
|
||||
if i >= ROUTE_TYPE(len(_ROUTE_TYPE_index)-1) {
|
||||
return "ROUTE_TYPE(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _ROUTE_TYPE_name[_ROUTE_TYPE_index[i]:_ROUTE_TYPE_index[i+1]]
|
||||
}
|
||||
73
vendor/github.com/osrg/gobgp/internal/pkg/zebra/routetype_string.go
generated
vendored
Normal file
73
vendor/github.com/osrg/gobgp/internal/pkg/zebra/routetype_string.go
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Code generated by "stringer -type=RouteType"; 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[routeSystem-0]
|
||||
_ = x[routeKernel-1]
|
||||
_ = x[routeConnect-2]
|
||||
_ = x[RouteStatic-3]
|
||||
_ = x[routeRIP-4]
|
||||
_ = x[routeRIPNG-5]
|
||||
_ = x[routeOSPF-6]
|
||||
_ = x[routeOSPF6-7]
|
||||
_ = x[routeISIS-8]
|
||||
_ = x[RouteBGP-9]
|
||||
_ = x[routePIM-10]
|
||||
_ = x[routeEIGRP-11]
|
||||
_ = x[routeNHRP-12]
|
||||
_ = x[routeHSLS-13]
|
||||
_ = x[routeOLSR-14]
|
||||
_ = x[routeTABLE-15]
|
||||
_ = x[routeLDP-16]
|
||||
_ = x[routeVNC-17]
|
||||
_ = x[routeVNCDirect-18]
|
||||
_ = x[routeVNCDirectRH-19]
|
||||
_ = x[routeBGPDirect-20]
|
||||
_ = x[routeBGPDirectEXT-21]
|
||||
_ = x[routeBABEL-22]
|
||||
_ = x[routeSHARP-23]
|
||||
_ = x[routePBR-24]
|
||||
_ = x[routeBFD-25]
|
||||
_ = x[routeOpenfabric-26]
|
||||
_ = x[routeVRRP-27]
|
||||
_ = x[routeNHG-28]
|
||||
_ = x[routeAll-29]
|
||||
_ = x[routeMax-30]
|
||||
_ = x[zapi5Frr4RouteAll-24]
|
||||
_ = x[zapi5Frr5RouteAll-25]
|
||||
_ = x[zapi6Frr6RouteAll-26]
|
||||
_ = x[zapi6Frr7RouteAll-27]
|
||||
_ = x[zapi6Frr7dot2RouteAll-28]
|
||||
_ = x[zapi4RouteNHRP-11]
|
||||
_ = x[zapi4RouteHSLS-12]
|
||||
_ = x[zapi4RouteOLSR-13]
|
||||
_ = x[zapi4RouteTABLE-14]
|
||||
_ = x[zapi4RouteLDP-15]
|
||||
_ = x[zapi4RouteVNC-16]
|
||||
_ = x[zapi4RouteVNCDirect-17]
|
||||
_ = x[zapi4RouteVNCDirectRH-18]
|
||||
_ = x[zapi4RouteBGPDixrect-19]
|
||||
_ = x[zapi4RouteBGPDirectEXT-20]
|
||||
_ = x[zapi4RouteAll-21]
|
||||
_ = x[zapi3RouteHSLS-11]
|
||||
_ = x[zapi3RouteOLSR-12]
|
||||
_ = x[zapi3RouteBABEL-13]
|
||||
_ = x[zapi3RouteNHRP-14]
|
||||
}
|
||||
|
||||
const _RouteType_name = "routeSystemrouteKernelrouteConnectRouteStaticrouteRIProuteRIPNGrouteOSPFrouteOSPF6routeISISRouteBGProutePIMrouteEIGRProuteNHRProuteHSLSrouteOLSRrouteTABLErouteLDProuteVNCrouteVNCDirectrouteVNCDirectRHrouteBGPDirectrouteBGPDirectEXTrouteBABELrouteSHARProutePBRrouteBFDrouteOpenfabricrouteVRRProuteNHGrouteAllrouteMax"
|
||||
|
||||
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, 307, 315}
|
||||
|
||||
func (i RouteType) String() string {
|
||||
if i >= RouteType(len(_RouteType_index)-1) {
|
||||
return "RouteType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _RouteType_name[_RouteType_index[i]:_RouteType_index[i+1]]
|
||||
}
|
||||
41
vendor/github.com/osrg/gobgp/internal/pkg/zebra/safi_string.go
generated
vendored
41
vendor/github.com/osrg/gobgp/internal/pkg/zebra/safi_string.go
generated
vendored
@@ -1,17 +1,36 @@
|
||||
// Code generated by "stringer -type=SAFI"; DO NOT EDIT.
|
||||
// Code generated by "stringer -type=Safi"; DO NOT EDIT.
|
||||
|
||||
package zebra
|
||||
|
||||
import "strconv"
|
||||
|
||||
const _SAFI_name = "SAFI_UNICASTSAFI_MULTICASTSAFI_RESERVED_3SAFI_MPLS_VPNSAFI_MAX"
|
||||
|
||||
var _SAFI_index = [...]uint8{0, 12, 26, 41, 54, 62}
|
||||
|
||||
func (i SAFI) String() string {
|
||||
i -= 1
|
||||
if i >= SAFI(len(_SAFI_index)-1) {
|
||||
return "SAFI(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _SAFI_name[_SAFI_index[i]:_SAFI_index[i+1]]
|
||||
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[safiUnspec-0]
|
||||
_ = x[SafiUnicast-1]
|
||||
_ = x[safiMulticast-2]
|
||||
_ = x[safiMplsVpn-3]
|
||||
_ = x[safiEncap-4]
|
||||
_ = x[safiEvpn-5]
|
||||
_ = x[safiLabeledUnicast-6]
|
||||
_ = x[safiFlowspec-7]
|
||||
_ = x[safiMax-8]
|
||||
_ = x[zapi4SafiMplsVpn-3]
|
||||
_ = x[zapi3SafiMplsVpn-4]
|
||||
_ = x[zapi4SafiEncap-5]
|
||||
_ = x[zapi4SafiEvpn-6]
|
||||
_ = x[zapi3SafiEncap-7]
|
||||
}
|
||||
|
||||
const _Safi_name = "safiUnspecSafiUnicastsafiMulticastsafiMplsVpnsafiEncapsafiEvpnsafiLabeledUnicastsafiFlowspecsafiMax"
|
||||
|
||||
var _Safi_index = [...]uint8{0, 10, 21, 34, 45, 54, 62, 80, 92, 99}
|
||||
|
||||
func (i Safi) String() string {
|
||||
if i >= Safi(len(_Safi_index)-1) {
|
||||
return "Safi(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Safi_name[_Safi_index[i]:_Safi_index[i+1]]
|
||||
}
|
||||
|
||||
3910
vendor/github.com/osrg/gobgp/internal/pkg/zebra/zapi.go
generated
vendored
3910
vendor/github.com/osrg/gobgp/internal/pkg/zebra/zapi.go
generated
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user