Add unit tests
This commit is contained in:
1723
vendor/github.com/osrg/gobgp/api/attribute.pb.go
generated
vendored
1723
vendor/github.com/osrg/gobgp/api/attribute.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
697
vendor/github.com/osrg/gobgp/api/attribute.proto
generated
vendored
697
vendor/github.com/osrg/gobgp/api/attribute.proto
generated
vendored
@@ -26,221 +26,214 @@ import "gobgp.proto";
|
||||
|
||||
package gobgpapi;
|
||||
|
||||
message OriginAttribute {
|
||||
uint32 origin = 1;
|
||||
}
|
||||
message OriginAttribute { uint32 origin = 1; }
|
||||
|
||||
message AsSegment {
|
||||
uint32 type = 1;
|
||||
repeated uint32 numbers = 2;
|
||||
uint32 type = 1;
|
||||
repeated uint32 numbers = 2;
|
||||
}
|
||||
|
||||
message AsPathAttribute {
|
||||
repeated AsSegment segments = 1;
|
||||
}
|
||||
message AsPathAttribute { repeated AsSegment segments = 1; }
|
||||
|
||||
message NextHopAttribute {
|
||||
string next_hop = 1;
|
||||
}
|
||||
message NextHopAttribute { string next_hop = 1; }
|
||||
|
||||
message MultiExitDiscAttribute {
|
||||
uint32 med = 1;
|
||||
}
|
||||
message MultiExitDiscAttribute { uint32 med = 1; }
|
||||
|
||||
message LocalPrefAttribute {
|
||||
uint32 local_pref = 1;
|
||||
}
|
||||
message LocalPrefAttribute { uint32 local_pref = 1; }
|
||||
|
||||
message AtomicAggregateAttribute {
|
||||
}
|
||||
message AtomicAggregateAttribute {}
|
||||
|
||||
message AggregatorAttribute {
|
||||
uint32 as = 2;
|
||||
string address = 3;
|
||||
uint32 as = 2;
|
||||
string address = 3;
|
||||
}
|
||||
|
||||
message CommunitiesAttribute {
|
||||
repeated uint32 communities = 1;
|
||||
}
|
||||
message CommunitiesAttribute { repeated uint32 communities = 1; }
|
||||
|
||||
message OriginatorIdAttribute {
|
||||
string id = 1;
|
||||
}
|
||||
message OriginatorIdAttribute { string id = 1; }
|
||||
|
||||
message ClusterListAttribute {
|
||||
repeated string ids = 1;
|
||||
}
|
||||
message ClusterListAttribute { repeated string ids = 1; }
|
||||
|
||||
// IPAddressPrefix represents the NLRI for:
|
||||
// - AFI=1, SAFI=1
|
||||
// - AFI=2, SAFI=1
|
||||
message IPAddressPrefix {
|
||||
uint32 prefix_len = 1;
|
||||
string prefix = 2;
|
||||
uint32 prefix_len = 1;
|
||||
string prefix = 2;
|
||||
}
|
||||
|
||||
// LabeledIPAddressPrefix represents the NLRI for:
|
||||
// - AFI=1, SAFI=4
|
||||
// - AFI=2, SAFI=4
|
||||
message LabeledIPAddressPrefix {
|
||||
repeated uint32 labels = 1;
|
||||
uint32 prefix_len = 2;
|
||||
string prefix = 3;
|
||||
repeated uint32 labels = 1;
|
||||
uint32 prefix_len = 2;
|
||||
string prefix = 3;
|
||||
}
|
||||
|
||||
// EncapsulationNLRI represents the NLRI for:
|
||||
// - AFI=1, SAFI=7
|
||||
// - AFI=2, SAFI=7
|
||||
message EncapsulationNLRI {
|
||||
string address = 1;
|
||||
}
|
||||
message EncapsulationNLRI { string address = 1; }
|
||||
|
||||
message RouteDistinguisherTwoOctetAS {
|
||||
uint32 admin = 1;
|
||||
uint32 assigned = 2;
|
||||
uint32 admin = 1;
|
||||
uint32 assigned = 2;
|
||||
}
|
||||
|
||||
message RouteDistinguisherIPAddress {
|
||||
string admin = 1;
|
||||
uint32 assigned = 2;
|
||||
string admin = 1;
|
||||
uint32 assigned = 2;
|
||||
}
|
||||
|
||||
message RouteDistinguisherFourOctetAS {
|
||||
uint32 admin = 1;
|
||||
uint32 assigned = 2;
|
||||
uint32 admin = 1;
|
||||
uint32 assigned = 2;
|
||||
}
|
||||
|
||||
message EthernetSegmentIdentifier {
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
// EVPNEthernetAutoDiscoveryRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=1
|
||||
message EVPNEthernetAutoDiscoveryRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
uint32 label = 4;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
uint32 label = 4;
|
||||
}
|
||||
|
||||
// EVPNMACIPAdvertisementRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=2
|
||||
message EVPNMACIPAdvertisementRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
string mac_address = 4;
|
||||
string ip_address = 5;
|
||||
repeated uint32 labels = 6;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
string mac_address = 4;
|
||||
string ip_address = 5;
|
||||
repeated uint32 labels = 6;
|
||||
}
|
||||
|
||||
// EVPNInclusiveMulticastEthernetTagRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=3
|
||||
message EVPNInclusiveMulticastEthernetTagRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
uint32 ethernet_tag = 2;
|
||||
string ip_address = 3;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
uint32 ethernet_tag = 2;
|
||||
string ip_address = 3;
|
||||
}
|
||||
|
||||
// EVPNEthernetSegmentRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=4
|
||||
message EVPNEthernetSegmentRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
string ip_address = 3;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
string ip_address = 3;
|
||||
}
|
||||
|
||||
// EVPNIPPrefixRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=5
|
||||
message EVPNIPPrefixRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
string ip_prefix = 4;
|
||||
uint32 ip_prefix_len = 5;
|
||||
string gw_address = 6;
|
||||
uint32 label = 7;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
EthernetSegmentIdentifier esi = 2;
|
||||
uint32 ethernet_tag = 3;
|
||||
string ip_prefix = 4;
|
||||
uint32 ip_prefix_len = 5;
|
||||
string gw_address = 6;
|
||||
uint32 label = 7;
|
||||
}
|
||||
|
||||
// EVPNIPMSIRoute represents the NLRI for:
|
||||
// - AFI=25, SAFI=70, RouteType=9
|
||||
message EVPNIPMSIRoute {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
uint32 ethernet_tag = 2;
|
||||
google.protobuf.Any rt = 3;
|
||||
}
|
||||
|
||||
// LabeledVPNIPAddressPrefix represents the NLRI for:
|
||||
// - AFI=1, SAFI=128
|
||||
// - AFI=2, SAFI=128
|
||||
message LabeledVPNIPAddressPrefix {
|
||||
repeated uint32 labels = 1;
|
||||
// One of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
google.protobuf.Any rd = 2;
|
||||
uint32 prefix_len = 3;
|
||||
string prefix = 4;
|
||||
repeated uint32 labels = 1;
|
||||
// One of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
google.protobuf.Any rd = 2;
|
||||
uint32 prefix_len = 3;
|
||||
string prefix = 4;
|
||||
}
|
||||
|
||||
// RouteTargetMembershipNLRI represents the NLRI for:
|
||||
// - AFI=1, SAFI=132
|
||||
message RouteTargetMembershipNLRI {
|
||||
uint32 as = 1;
|
||||
// One of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
google.protobuf.Any rt = 2;
|
||||
uint32 as = 1;
|
||||
// One of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
google.protobuf.Any rt = 2;
|
||||
}
|
||||
|
||||
message FlowSpecIPPrefix {
|
||||
uint32 type = 1;
|
||||
uint32 prefix_len = 2;
|
||||
string prefix = 3;
|
||||
// IPv6 only
|
||||
uint32 offset = 4;
|
||||
uint32 type = 1;
|
||||
uint32 prefix_len = 2;
|
||||
string prefix = 3;
|
||||
// IPv6 only
|
||||
uint32 offset = 4;
|
||||
}
|
||||
|
||||
message FlowSpecMAC {
|
||||
uint32 type = 1;
|
||||
string address = 2;
|
||||
uint32 type = 1;
|
||||
string address = 2;
|
||||
}
|
||||
|
||||
message FlowSpecComponentItem {
|
||||
// Operator for Numeric type, Operand for Bitmask type
|
||||
uint32 op = 1;
|
||||
uint64 value = 2;
|
||||
// Operator for Numeric type, Operand for Bitmask type
|
||||
uint32 op = 1;
|
||||
uint64 value = 2;
|
||||
}
|
||||
|
||||
message FlowSpecComponent {
|
||||
uint32 type = 1;
|
||||
repeated FlowSpecComponentItem items = 2;
|
||||
uint32 type = 1;
|
||||
repeated FlowSpecComponentItem items = 2;
|
||||
}
|
||||
|
||||
// FlowSpecNLRI represents the NLRI for:
|
||||
// - AFI=1, SAFI=133
|
||||
// - AFI=2, SAFI=133
|
||||
message FlowSpecNLRI {
|
||||
// One of:
|
||||
// - FlowSpecIPPrefix
|
||||
// - FlowSpecMAC
|
||||
// - FlowSpecComponent
|
||||
repeated google.protobuf.Any rules = 1;
|
||||
// One of:
|
||||
// - FlowSpecIPPrefix
|
||||
// - FlowSpecMAC
|
||||
// - FlowSpecComponent
|
||||
repeated google.protobuf.Any rules = 1;
|
||||
}
|
||||
|
||||
// VPNFlowSpecNLRI represents the NLRI for:
|
||||
@@ -248,258 +241,414 @@ message FlowSpecNLRI {
|
||||
// - AFI=2, SAFI=134
|
||||
// - AFI=25, SAFI=134
|
||||
message VPNFlowSpecNLRI {
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
// One of:
|
||||
// - FlowSpecIPPrefix
|
||||
// - FlowSpecMAC
|
||||
// - FlowSpecComponent
|
||||
repeated google.protobuf.Any rules = 2;
|
||||
// One of:
|
||||
// - RouteDistinguisherTwoOctetAS
|
||||
// - RouteDistinguisherIPAddressAS
|
||||
// - RouteDistinguisherFourOctetAS
|
||||
google.protobuf.Any rd = 1;
|
||||
// One of:
|
||||
// - FlowSpecIPPrefix
|
||||
// - FlowSpecMAC
|
||||
// - FlowSpecComponent
|
||||
repeated google.protobuf.Any rules = 2;
|
||||
}
|
||||
|
||||
// OpaqueNLRI represents the NLRI for:
|
||||
// - AFI=16397, SAFI=241
|
||||
message OpaqueNLRI {
|
||||
bytes key = 1;
|
||||
bytes value = 2;
|
||||
bytes key = 1;
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
message LsNodeDescriptor {
|
||||
uint32 asn = 1;
|
||||
uint32 bgp_ls_id = 2;
|
||||
uint32 ospf_area_id = 3;
|
||||
bool pseudonode = 4;
|
||||
string igp_router_id = 5;
|
||||
}
|
||||
|
||||
message LsLinkDescriptor {
|
||||
uint32 link_local_id = 1;
|
||||
uint32 link_remote_id = 2;
|
||||
string interface_addr_ipv4 = 3;
|
||||
string neighbor_addr_ipv4 = 4;
|
||||
string interface_addr_ipv6 = 5;
|
||||
string neighbor_addr_ipv6 = 6;
|
||||
}
|
||||
|
||||
message LsPrefixDescriptor {
|
||||
repeated string ip_reachability = 1;
|
||||
string ospf_route_type = 2;
|
||||
}
|
||||
|
||||
message LsNodeNLRI { LsNodeDescriptor local_node = 1; }
|
||||
|
||||
message LsLinkNLRI {
|
||||
LsNodeDescriptor local_node = 1;
|
||||
LsNodeDescriptor remote_node = 2;
|
||||
LsLinkDescriptor link_descriptor = 3;
|
||||
}
|
||||
|
||||
message LsPrefixV4NLRI {
|
||||
LsNodeDescriptor local_node = 1;
|
||||
LsPrefixDescriptor prefix_descriptor = 2;
|
||||
}
|
||||
|
||||
message LsPrefixV6NLRI {
|
||||
LsNodeDescriptor local_node = 1;
|
||||
LsPrefixDescriptor prefix_descriptor = 2;
|
||||
}
|
||||
|
||||
// Based om RFC 7752, Table 1.
|
||||
enum LsNLRIType {
|
||||
LS_NLRI_UNKNOWN = 0;
|
||||
LS_NLRI_NODE = 1;
|
||||
LS_NLRI_LINK = 2;
|
||||
LS_NLRI_PREFIX_V4 = 3;
|
||||
LS_NLRI_PREFIX_V6 = 4;
|
||||
}
|
||||
|
||||
// LsAddrPrefix represents the NLRI for:
|
||||
// - AFI=16388, SAFI=71
|
||||
message LsAddrPrefix {
|
||||
LsNLRIType type = 1;
|
||||
// One of:
|
||||
// - LsNodeNLRI
|
||||
// - LsLinkNLRI
|
||||
// - LsPrefixV4NLRI
|
||||
// - LsPrefixV6NLRI
|
||||
google.protobuf.Any nlri = 2;
|
||||
}
|
||||
|
||||
message MpReachNLRIAttribute {
|
||||
gobgpapi.Family family = 1;
|
||||
repeated string next_hops = 2;
|
||||
// Each NLRI must be one of:
|
||||
// - IPAddressPrefix
|
||||
// - LabeledIPAddressPrefix
|
||||
// - EncapsulationNLRI
|
||||
// - EVPNEthernetAutoDiscoveryRoute
|
||||
// - EVPNMACIPAdvertisementRoute
|
||||
// - EVPNInclusiveMulticastEthernetTagRoute
|
||||
// - EVPNEthernetSegmentRoute
|
||||
// - EVPNIPPrefixRoute
|
||||
// - LabeledVPNIPAddressPrefix
|
||||
// - RouteTargetMembershipNLRI
|
||||
// - FlowSpecNLRI
|
||||
// - VPNFlowSpecNLRI
|
||||
// - OpaqueNLRI
|
||||
repeated google.protobuf.Any nlris = 3;
|
||||
gobgpapi.Family family = 1;
|
||||
repeated string next_hops = 2;
|
||||
// Each NLRI must be one of:
|
||||
// - IPAddressPrefix
|
||||
// - LabeledIPAddressPrefix
|
||||
// - EncapsulationNLRI
|
||||
// - EVPNEthernetAutoDiscoveryRoute
|
||||
// - EVPNMACIPAdvertisementRoute
|
||||
// - EVPNInclusiveMulticastEthernetTagRoute
|
||||
// - EVPNEthernetSegmentRoute
|
||||
// - EVPNIPPrefixRoute
|
||||
// - EVPNIPMSIRoute
|
||||
// - LabeledVPNIPAddressPrefix
|
||||
// - RouteTargetMembershipNLRI
|
||||
// - FlowSpecNLRI
|
||||
// - VPNFlowSpecNLRI
|
||||
// - OpaqueNLRI
|
||||
// - LsAddrPrefix
|
||||
repeated google.protobuf.Any nlris = 3;
|
||||
}
|
||||
|
||||
message MpUnreachNLRIAttribute {
|
||||
gobgpapi.Family family = 1;
|
||||
// The same as NLRI field of MpReachNLRIAttribute
|
||||
repeated google.protobuf.Any nlris = 3;
|
||||
gobgpapi.Family family = 1;
|
||||
// The same as NLRI field of MpReachNLRIAttribute
|
||||
repeated google.protobuf.Any nlris = 3;
|
||||
}
|
||||
|
||||
message TwoOctetAsSpecificExtended {
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
uint32 as = 3;
|
||||
uint32 local_admin = 4;
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
uint32 as = 3;
|
||||
uint32 local_admin = 4;
|
||||
}
|
||||
|
||||
message IPv4AddressSpecificExtended {
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
string address = 3;
|
||||
uint32 local_admin = 4;
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
string address = 3;
|
||||
uint32 local_admin = 4;
|
||||
}
|
||||
|
||||
message FourOctetAsSpecificExtended {
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
uint32 as = 3;
|
||||
uint32 local_admin = 4;
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
uint32 as = 3;
|
||||
uint32 local_admin = 4;
|
||||
}
|
||||
|
||||
message ValidationExtended {
|
||||
uint32 state = 1;
|
||||
}
|
||||
message ValidationExtended { uint32 state = 1; }
|
||||
|
||||
message ColorExtended {
|
||||
uint32 color = 1;
|
||||
}
|
||||
message ColorExtended { uint32 color = 1; }
|
||||
|
||||
message EncapExtended {
|
||||
uint32 tunnel_type = 1;
|
||||
}
|
||||
message EncapExtended { uint32 tunnel_type = 1; }
|
||||
|
||||
message DefaultGatewayExtended {
|
||||
}
|
||||
message DefaultGatewayExtended {}
|
||||
|
||||
message OpaqueExtended {
|
||||
bool is_transitive = 1;
|
||||
bytes value = 3;
|
||||
bool is_transitive = 1;
|
||||
bytes value = 3;
|
||||
}
|
||||
|
||||
message ESILabelExtended {
|
||||
bool is_single_active = 1;
|
||||
uint32 label = 2;
|
||||
bool is_single_active = 1;
|
||||
uint32 label = 2;
|
||||
}
|
||||
|
||||
message ESImportRouteTarget {
|
||||
string es_import = 1;
|
||||
}
|
||||
message ESImportRouteTarget { string es_import = 1; }
|
||||
|
||||
message MacMobilityExtended {
|
||||
bool is_sticky = 1;
|
||||
uint32 sequence_num = 2;
|
||||
bool is_sticky = 1;
|
||||
uint32 sequence_num = 2;
|
||||
}
|
||||
|
||||
message RouterMacExtended {
|
||||
string mac = 1;
|
||||
}
|
||||
message RouterMacExtended { string mac = 1; }
|
||||
|
||||
message TrafficRateExtended {
|
||||
uint32 as = 1;
|
||||
float rate = 2;
|
||||
uint32 as = 1;
|
||||
float rate = 2;
|
||||
}
|
||||
|
||||
message TrafficActionExtended {
|
||||
bool terminal = 1;
|
||||
bool sample = 2;
|
||||
bool terminal = 1;
|
||||
bool sample = 2;
|
||||
}
|
||||
|
||||
message RedirectTwoOctetAsSpecificExtended {
|
||||
uint32 as = 1;
|
||||
uint32 local_admin = 2;
|
||||
uint32 as = 1;
|
||||
uint32 local_admin = 2;
|
||||
}
|
||||
|
||||
message RedirectIPv4AddressSpecificExtended {
|
||||
string address = 1;
|
||||
uint32 local_admin = 2;
|
||||
string address = 1;
|
||||
uint32 local_admin = 2;
|
||||
}
|
||||
|
||||
message RedirectFourOctetAsSpecificExtended {
|
||||
uint32 as = 1;
|
||||
uint32 local_admin = 2;
|
||||
uint32 as = 1;
|
||||
uint32 local_admin = 2;
|
||||
}
|
||||
|
||||
message TrafficRemarkExtended {
|
||||
uint32 dscp = 1;
|
||||
}
|
||||
message TrafficRemarkExtended { uint32 dscp = 1; }
|
||||
|
||||
message UnknownExtended {
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
message ExtendedCommunitiesAttribute {
|
||||
// Each Community must be one of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
// - OpaqueExtended
|
||||
// - ESILabelExtended
|
||||
// - MacMobilityExtended
|
||||
// - RouterMacExtended
|
||||
// - TrafficRateExtended
|
||||
// - TrafficActionExtended
|
||||
// - RedirectTwoOctetAsSpecificExtended
|
||||
// - RedirectIPv4AddressSpecificExtended
|
||||
// - RedirectFourOctetAsSpecificExtended
|
||||
// - TrafficRemarkExtended
|
||||
// - UnknownExtended
|
||||
repeated google.protobuf.Any communities = 1;
|
||||
// Each Community must be one of:
|
||||
// - TwoOctetAsSpecificExtended
|
||||
// - IPv4AddressSpecificExtended
|
||||
// - FourOctetAsSpecificExtended
|
||||
// - OpaqueExtended
|
||||
// - ESILabelExtended
|
||||
// - MacMobilityExtended
|
||||
// - RouterMacExtended
|
||||
// - TrafficRateExtended
|
||||
// - TrafficActionExtended
|
||||
// - RedirectTwoOctetAsSpecificExtended
|
||||
// - RedirectIPv4AddressSpecificExtended
|
||||
// - RedirectFourOctetAsSpecificExtended
|
||||
// - TrafficRemarkExtended
|
||||
// - UnknownExtended
|
||||
repeated google.protobuf.Any communities = 1;
|
||||
}
|
||||
|
||||
message As4PathAttribute {
|
||||
repeated AsSegment segments = 1;
|
||||
}
|
||||
message As4PathAttribute { repeated AsSegment segments = 1; }
|
||||
|
||||
message As4AggregatorAttribute {
|
||||
uint32 as = 2;
|
||||
string address = 3;
|
||||
uint32 as = 2;
|
||||
string address = 3;
|
||||
}
|
||||
|
||||
message PmsiTunnelAttribute {
|
||||
uint32 flags = 1;
|
||||
uint32 type = 2;
|
||||
uint32 label = 3;
|
||||
bytes id = 4;
|
||||
uint32 flags = 1;
|
||||
uint32 type = 2;
|
||||
uint32 label = 3;
|
||||
bytes id = 4;
|
||||
}
|
||||
|
||||
message TunnelEncapSubTLVEncapsulation {
|
||||
uint32 key = 1;
|
||||
bytes cookie = 2;
|
||||
uint32 key = 1;
|
||||
bytes cookie = 2;
|
||||
}
|
||||
|
||||
message TunnelEncapSubTLVProtocol {
|
||||
uint32 protocol = 1;
|
||||
}
|
||||
message TunnelEncapSubTLVProtocol { uint32 protocol = 1; }
|
||||
|
||||
message TunnelEncapSubTLVColor {
|
||||
uint32 color = 1;
|
||||
}
|
||||
message TunnelEncapSubTLVColor { uint32 color = 1; }
|
||||
|
||||
message TunnelEncapSubTLVUnknown {
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
message TunnelEncapTLV {
|
||||
uint32 type = 1;
|
||||
// Each TLV must be one of:
|
||||
// - TunnelEncapSubTLVEncapsulation
|
||||
// - TunnelEncapSubTLVProtocol
|
||||
// - TunnelEncapSubTLVColor
|
||||
// - TunnelEncapSubTLVUnknown
|
||||
repeated google.protobuf.Any tlvs = 2;
|
||||
uint32 type = 1;
|
||||
// Each TLV must be one of:
|
||||
// - TunnelEncapSubTLVEncapsulation
|
||||
// - TunnelEncapSubTLVProtocol
|
||||
// - TunnelEncapSubTLVColor
|
||||
// - TunnelEncapSubTLVUnknown
|
||||
repeated google.protobuf.Any tlvs = 2;
|
||||
}
|
||||
|
||||
message TunnelEncapAttribute {
|
||||
repeated TunnelEncapTLV tlvs = 1;
|
||||
}
|
||||
message TunnelEncapAttribute { repeated TunnelEncapTLV tlvs = 1; }
|
||||
|
||||
message IPv6AddressSpecificExtended {
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
string address = 3;
|
||||
uint32 local_admin = 4;
|
||||
bool is_transitive = 1;
|
||||
uint32 sub_type = 2;
|
||||
string address = 3;
|
||||
uint32 local_admin = 4;
|
||||
}
|
||||
|
||||
message RedirectIPv6AddressSpecificExtended {
|
||||
string address = 1;
|
||||
uint32 local_admin = 2;
|
||||
string address = 1;
|
||||
uint32 local_admin = 2;
|
||||
}
|
||||
|
||||
message IP6ExtendedCommunitiesAttribute {
|
||||
// Each Community must be one of:
|
||||
// - IPv6AddressSpecificExtended
|
||||
// - RedirectIPv6AddressSpecificExtended
|
||||
repeated google.protobuf.Any communities = 1;
|
||||
// Each Community must be one of:
|
||||
// - IPv6AddressSpecificExtended
|
||||
// - RedirectIPv6AddressSpecificExtended
|
||||
repeated google.protobuf.Any communities = 1;
|
||||
}
|
||||
|
||||
message AigpTLVIGPMetric {
|
||||
uint64 metric = 1;
|
||||
}
|
||||
message AigpTLVIGPMetric { uint64 metric = 1; }
|
||||
|
||||
message AigpTLVUnknown {
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
uint32 type = 1;
|
||||
bytes value = 2;
|
||||
}
|
||||
|
||||
message AigpAttribute {
|
||||
// Each TLV must be one of:
|
||||
// - AigpTLVIGPMetric
|
||||
// - AigpTLVUnknown
|
||||
repeated google.protobuf.Any tlvs = 1;
|
||||
// Each TLV must be one of:
|
||||
// - AigpTLVIGPMetric
|
||||
// - AigpTLVUnknown
|
||||
repeated google.protobuf.Any tlvs = 1;
|
||||
}
|
||||
|
||||
message LargeCommunity {
|
||||
uint32 global_admin = 1;
|
||||
uint32 local_data1 = 2;
|
||||
uint32 local_data2 = 3;
|
||||
uint32 global_admin = 1;
|
||||
uint32 local_data1 = 2;
|
||||
uint32 local_data2 = 3;
|
||||
}
|
||||
|
||||
message LargeCommunitiesAttribute {
|
||||
repeated LargeCommunity communities = 1;
|
||||
message LargeCommunitiesAttribute { repeated LargeCommunity communities = 1; }
|
||||
|
||||
message LsNodeFlags {
|
||||
bool overload = 1;
|
||||
bool attached = 2;
|
||||
bool external = 3;
|
||||
bool abr = 4;
|
||||
bool router = 5;
|
||||
bool v6 = 6;
|
||||
}
|
||||
|
||||
message LsIGPFlags {
|
||||
bool down = 1;
|
||||
bool no_unicast = 2;
|
||||
bool local_address = 3;
|
||||
bool propagate_nssa = 4;
|
||||
}
|
||||
|
||||
message LsSrRange {
|
||||
uint32 begin = 1;
|
||||
uint32 end = 2;
|
||||
}
|
||||
|
||||
message LsSrCapabilities {
|
||||
bool ipv4_supported = 1;
|
||||
bool ipv6_supported = 2;
|
||||
repeated LsSrRange ranges = 3;
|
||||
}
|
||||
|
||||
message LsSrLocalBlock { repeated LsSrRange ranges = 1; }
|
||||
|
||||
message LsAttributeNode {
|
||||
string name = 1;
|
||||
LsNodeFlags flags = 2;
|
||||
string local_router_id = 3;
|
||||
string local_router_id_v6 = 4;
|
||||
bytes isis_area = 5;
|
||||
bytes opaque = 6;
|
||||
|
||||
LsSrCapabilities sr_capabilities = 7;
|
||||
bytes sr_algorithms = 8;
|
||||
LsSrLocalBlock sr_local_block = 9;
|
||||
}
|
||||
|
||||
message LsAttributeLink {
|
||||
string name = 1;
|
||||
string local_router_id = 2;
|
||||
string local_router_id_v6 = 3;
|
||||
string remote_router_id = 4;
|
||||
string remote_router_id_v6 = 5;
|
||||
uint32 admin_group = 6;
|
||||
uint32 default_te_metric = 7;
|
||||
uint32 igp_metric = 8;
|
||||
bytes opaque = 9;
|
||||
|
||||
float bandwidth = 10;
|
||||
float reservable_bandwidth = 11;
|
||||
repeated float unreserved_bandwidth = 12;
|
||||
|
||||
uint32 sr_adjacency_sid = 13;
|
||||
repeated uint32 srlgs = 14;
|
||||
}
|
||||
|
||||
message LsAttributePrefix {
|
||||
LsIGPFlags igp_flags = 1;
|
||||
bytes opaque = 2;
|
||||
|
||||
uint32 sr_prefix_sid = 3;
|
||||
}
|
||||
|
||||
message LsAttribute {
|
||||
LsAttributeNode node = 1;
|
||||
LsAttributeLink link = 2;
|
||||
LsAttributePrefix prefix = 3;
|
||||
}
|
||||
|
||||
message UnknownAttribute {
|
||||
uint32 flags = 1;
|
||||
uint32 type = 2;
|
||||
bytes value = 3;
|
||||
uint32 flags = 1;
|
||||
uint32 type = 2;
|
||||
bytes value = 3;
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1
|
||||
message SRv6StructureSubSubTLV {
|
||||
uint32 local_block_length = 1;
|
||||
uint32 local_node_length = 2;
|
||||
uint32 function_length = 3;
|
||||
uint32 argument_length = 4;
|
||||
uint32 transposition_length = 5;
|
||||
uint32 transposition_offset = 6;
|
||||
}
|
||||
|
||||
message SRv6SIDFlags {
|
||||
// Placeholder for future sid flags
|
||||
bool flag_1 = 1;
|
||||
}
|
||||
|
||||
message SRv6TLV { repeated google.protobuf.Any tlv = 1; }
|
||||
|
||||
// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2.1.1
|
||||
message SRv6InformationSubTLV {
|
||||
bytes sid = 1;
|
||||
SRv6SIDFlags flags = 2;
|
||||
uint32 endpoint_behavior = 3;
|
||||
// SRv6TLV is one of:
|
||||
// - SRv6StructureSubSubTLV
|
||||
map<uint32, SRv6TLV> sub_sub_tlvs = 4;
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/draft-dawra-bess-srv6-services-02#section-2
|
||||
message SRv6L3ServiceTLV {
|
||||
// SRv6TLV is one of:
|
||||
// - SRv6InformationSubTLV
|
||||
map<uint32, SRv6TLV> sub_tlvs = 1;
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc8669
|
||||
message PrefixSID {
|
||||
// tlv is one of:
|
||||
// - IndexLabelTLV Type 1 (not yet implemented)
|
||||
// - OriginatorSRGBTLV Type 3 (not yet implemented)
|
||||
// - SRv6L3ServiceTLV Type 5
|
||||
// - SRv6L2ServiceTLV Type 6 (not yet implemented)
|
||||
repeated google.protobuf.Any tlvs = 1;
|
||||
}
|
||||
47
vendor/github.com/osrg/gobgp/api/capability.pb.go
generated
vendored
47
vendor/github.com/osrg/gobgp/api/capability.pb.go
generated
vendored
@@ -1,6 +1,5 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: capability.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package gobgpapi
|
||||
|
||||
@@ -38,7 +37,7 @@ var AddPathMode_value = map[string]int32{
|
||||
func (x AddPathMode) String() string {
|
||||
return proto.EnumName(AddPathMode_name, int32(x))
|
||||
}
|
||||
func (AddPathMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (AddPathMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
type MultiProtocolCapability struct {
|
||||
Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
|
||||
@@ -47,7 +46,7 @@ type MultiProtocolCapability struct {
|
||||
func (m *MultiProtocolCapability) Reset() { *m = MultiProtocolCapability{} }
|
||||
func (m *MultiProtocolCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*MultiProtocolCapability) ProtoMessage() {}
|
||||
func (*MultiProtocolCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (*MultiProtocolCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
func (m *MultiProtocolCapability) GetFamily() *Family {
|
||||
if m != nil {
|
||||
@@ -62,7 +61,7 @@ type RouteRefreshCapability struct {
|
||||
func (m *RouteRefreshCapability) Reset() { *m = RouteRefreshCapability{} }
|
||||
func (m *RouteRefreshCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*RouteRefreshCapability) ProtoMessage() {}
|
||||
func (*RouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (*RouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
||||
|
||||
type CarryingLabelInfoCapability struct {
|
||||
}
|
||||
@@ -70,7 +69,7 @@ type CarryingLabelInfoCapability struct {
|
||||
func (m *CarryingLabelInfoCapability) Reset() { *m = CarryingLabelInfoCapability{} }
|
||||
func (m *CarryingLabelInfoCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*CarryingLabelInfoCapability) ProtoMessage() {}
|
||||
func (*CarryingLabelInfoCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (*CarryingLabelInfoCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
||||
|
||||
type ExtendedNexthopCapabilityTuple struct {
|
||||
NlriFamily *Family `protobuf:"bytes,1,opt,name=nlri_family,json=nlriFamily" json:"nlri_family,omitempty"`
|
||||
@@ -83,7 +82,7 @@ type ExtendedNexthopCapabilityTuple struct {
|
||||
func (m *ExtendedNexthopCapabilityTuple) Reset() { *m = ExtendedNexthopCapabilityTuple{} }
|
||||
func (m *ExtendedNexthopCapabilityTuple) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExtendedNexthopCapabilityTuple) ProtoMessage() {}
|
||||
func (*ExtendedNexthopCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (*ExtendedNexthopCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
|
||||
|
||||
func (m *ExtendedNexthopCapabilityTuple) GetNlriFamily() *Family {
|
||||
if m != nil {
|
||||
@@ -106,7 +105,7 @@ type ExtendedNexthopCapability struct {
|
||||
func (m *ExtendedNexthopCapability) Reset() { *m = ExtendedNexthopCapability{} }
|
||||
func (m *ExtendedNexthopCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExtendedNexthopCapability) ProtoMessage() {}
|
||||
func (*ExtendedNexthopCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (*ExtendedNexthopCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
|
||||
|
||||
func (m *ExtendedNexthopCapability) GetTuples() []*ExtendedNexthopCapabilityTuple {
|
||||
if m != nil {
|
||||
@@ -123,7 +122,7 @@ type GracefulRestartCapabilityTuple struct {
|
||||
func (m *GracefulRestartCapabilityTuple) Reset() { *m = GracefulRestartCapabilityTuple{} }
|
||||
func (m *GracefulRestartCapabilityTuple) String() string { return proto.CompactTextString(m) }
|
||||
func (*GracefulRestartCapabilityTuple) ProtoMessage() {}
|
||||
func (*GracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (*GracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
|
||||
|
||||
func (m *GracefulRestartCapabilityTuple) GetFamily() *Family {
|
||||
if m != nil {
|
||||
@@ -148,7 +147,7 @@ type GracefulRestartCapability struct {
|
||||
func (m *GracefulRestartCapability) Reset() { *m = GracefulRestartCapability{} }
|
||||
func (m *GracefulRestartCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*GracefulRestartCapability) ProtoMessage() {}
|
||||
func (*GracefulRestartCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
|
||||
func (*GracefulRestartCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
|
||||
|
||||
func (m *GracefulRestartCapability) GetFlags() uint32 {
|
||||
if m != nil {
|
||||
@@ -178,7 +177,7 @@ type FourOctetASNumberCapability struct {
|
||||
func (m *FourOctetASNumberCapability) Reset() { *m = FourOctetASNumberCapability{} }
|
||||
func (m *FourOctetASNumberCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*FourOctetASNumberCapability) ProtoMessage() {}
|
||||
func (*FourOctetASNumberCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
|
||||
func (*FourOctetASNumberCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
|
||||
|
||||
func (m *FourOctetASNumberCapability) GetAs() uint32 {
|
||||
if m != nil {
|
||||
@@ -195,7 +194,7 @@ type AddPathCapabilityTuple struct {
|
||||
func (m *AddPathCapabilityTuple) Reset() { *m = AddPathCapabilityTuple{} }
|
||||
func (m *AddPathCapabilityTuple) String() string { return proto.CompactTextString(m) }
|
||||
func (*AddPathCapabilityTuple) ProtoMessage() {}
|
||||
func (*AddPathCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
|
||||
func (*AddPathCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
|
||||
|
||||
func (m *AddPathCapabilityTuple) GetFamily() *Family {
|
||||
if m != nil {
|
||||
@@ -218,7 +217,7 @@ type AddPathCapability struct {
|
||||
func (m *AddPathCapability) Reset() { *m = AddPathCapability{} }
|
||||
func (m *AddPathCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*AddPathCapability) ProtoMessage() {}
|
||||
func (*AddPathCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
|
||||
func (*AddPathCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
|
||||
|
||||
func (m *AddPathCapability) GetTuples() []*AddPathCapabilityTuple {
|
||||
if m != nil {
|
||||
@@ -230,10 +229,12 @@ func (m *AddPathCapability) GetTuples() []*AddPathCapabilityTuple {
|
||||
type EnhancedRouteRefreshCapability struct {
|
||||
}
|
||||
|
||||
func (m *EnhancedRouteRefreshCapability) Reset() { *m = EnhancedRouteRefreshCapability{} }
|
||||
func (m *EnhancedRouteRefreshCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnhancedRouteRefreshCapability) ProtoMessage() {}
|
||||
func (*EnhancedRouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
|
||||
func (m *EnhancedRouteRefreshCapability) Reset() { *m = EnhancedRouteRefreshCapability{} }
|
||||
func (m *EnhancedRouteRefreshCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*EnhancedRouteRefreshCapability) ProtoMessage() {}
|
||||
func (*EnhancedRouteRefreshCapability) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor1, []int{10}
|
||||
}
|
||||
|
||||
type LongLivedGracefulRestartCapabilityTuple struct {
|
||||
Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
|
||||
@@ -247,7 +248,7 @@ func (m *LongLivedGracefulRestartCapabilityTuple) Reset() {
|
||||
func (m *LongLivedGracefulRestartCapabilityTuple) String() string { return proto.CompactTextString(m) }
|
||||
func (*LongLivedGracefulRestartCapabilityTuple) ProtoMessage() {}
|
||||
func (*LongLivedGracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{11}
|
||||
return fileDescriptor1, []int{11}
|
||||
}
|
||||
|
||||
func (m *LongLivedGracefulRestartCapabilityTuple) GetFamily() *Family {
|
||||
@@ -279,7 +280,7 @@ func (m *LongLivedGracefulRestartCapability) Reset() { *m = LongLivedGra
|
||||
func (m *LongLivedGracefulRestartCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*LongLivedGracefulRestartCapability) ProtoMessage() {}
|
||||
func (*LongLivedGracefulRestartCapability) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{12}
|
||||
return fileDescriptor1, []int{12}
|
||||
}
|
||||
|
||||
func (m *LongLivedGracefulRestartCapability) GetTuples() []*LongLivedGracefulRestartCapabilityTuple {
|
||||
@@ -295,7 +296,7 @@ type RouteRefreshCiscoCapability struct {
|
||||
func (m *RouteRefreshCiscoCapability) Reset() { *m = RouteRefreshCiscoCapability{} }
|
||||
func (m *RouteRefreshCiscoCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*RouteRefreshCiscoCapability) ProtoMessage() {}
|
||||
func (*RouteRefreshCiscoCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} }
|
||||
func (*RouteRefreshCiscoCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
|
||||
|
||||
type UnknownCapability struct {
|
||||
Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
|
||||
@@ -305,7 +306,7 @@ type UnknownCapability struct {
|
||||
func (m *UnknownCapability) Reset() { *m = UnknownCapability{} }
|
||||
func (m *UnknownCapability) String() string { return proto.CompactTextString(m) }
|
||||
func (*UnknownCapability) ProtoMessage() {}
|
||||
func (*UnknownCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{14} }
|
||||
func (*UnknownCapability) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} }
|
||||
|
||||
func (m *UnknownCapability) GetCode() uint32 {
|
||||
if m != nil {
|
||||
@@ -340,9 +341,9 @@ func init() {
|
||||
proto.RegisterEnum("gobgpapi.AddPathMode", AddPathMode_name, AddPathMode_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("capability.proto", fileDescriptor2) }
|
||||
func init() { proto.RegisterFile("capability.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor1 = []byte{
|
||||
// 520 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
|
||||
0x10, 0xc5, 0x49, 0x88, 0x60, 0xd2, 0x44, 0xee, 0x0a, 0x4a, 0x4a, 0xd4, 0x28, 0xda, 0x0b, 0x01,
|
||||
|
||||
2302
vendor/github.com/osrg/gobgp/api/gobgp.pb.go
generated
vendored
2302
vendor/github.com/osrg/gobgp/api/gobgp.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
155
vendor/github.com/osrg/gobgp/api/gobgp.proto
generated
vendored
155
vendor/github.com/osrg/gobgp/api/gobgp.proto
generated
vendored
@@ -23,6 +23,7 @@ syntax = "proto3";
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
package gobgpapi;
|
||||
|
||||
@@ -199,7 +200,7 @@ message AddDynamicNeighborRequest {
|
||||
}
|
||||
|
||||
message AddPathRequest {
|
||||
Resource resource = 1;
|
||||
TableType table_type = 1;
|
||||
string vrf_id = 2;
|
||||
Path path = 3;
|
||||
}
|
||||
@@ -209,7 +210,7 @@ message AddPathResponse {
|
||||
}
|
||||
|
||||
message DeletePathRequest {
|
||||
Resource resource = 1;
|
||||
TableType table_type = 1;
|
||||
string vrf_id = 2;
|
||||
Family family = 3;
|
||||
Path path = 4;
|
||||
@@ -217,10 +218,16 @@ message DeletePathRequest {
|
||||
}
|
||||
|
||||
message ListPathRequest {
|
||||
Resource type = 1;
|
||||
TableType table_type = 1;
|
||||
string name = 2;
|
||||
Family family = 3;
|
||||
repeated TableLookupPrefix prefixes = 4;
|
||||
enum SortType {
|
||||
NONE = 0;
|
||||
PREFIX = 1;
|
||||
}
|
||||
SortType sort_type = 5;
|
||||
bool enable_filtered = 6;
|
||||
}
|
||||
|
||||
message ListPathResponse {
|
||||
@@ -228,13 +235,13 @@ message ListPathResponse {
|
||||
}
|
||||
|
||||
message AddPathStreamRequest {
|
||||
Resource resource = 1;
|
||||
TableType table_type = 1;
|
||||
string vrf_id = 2;
|
||||
repeated Path paths = 3;
|
||||
}
|
||||
|
||||
message GetTableRequest {
|
||||
Resource type = 1;
|
||||
TableType table_type = 1;
|
||||
Family family = 2;
|
||||
string name = 3;
|
||||
}
|
||||
@@ -246,7 +253,7 @@ message GetTableResponse {
|
||||
}
|
||||
|
||||
message MonitorTableRequest {
|
||||
Resource type = 1;
|
||||
TableType table_type = 1;
|
||||
string name = 2;
|
||||
Family family = 3;
|
||||
bool current = 4;
|
||||
@@ -312,7 +319,7 @@ message DeleteDefinedSetRequest {
|
||||
}
|
||||
|
||||
message ListDefinedSetRequest {
|
||||
DefinedType type = 1;
|
||||
DefinedType defined_type = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
@@ -408,12 +415,15 @@ message EnableZebraRequest {
|
||||
uint32 version = 3;
|
||||
bool nexthop_trigger_enable = 4;
|
||||
uint32 nexthop_trigger_delay = 5;
|
||||
uint32 mpls_label_range_size = 6;
|
||||
string software_name = 7;
|
||||
}
|
||||
|
||||
message EnableMrtRequest {
|
||||
int32 dump_type = 1;
|
||||
string filename = 2;
|
||||
uint64 interval = 3;
|
||||
uint64 dump_interval = 3;
|
||||
uint64 rotation_interval = 4;
|
||||
}
|
||||
|
||||
message DisableMrtRequest {
|
||||
@@ -429,7 +439,10 @@ message AddBmpRequest {
|
||||
LOCAL = 3;
|
||||
ALL = 4;
|
||||
}
|
||||
MonitoringPolicy type = 3;
|
||||
MonitoringPolicy policy = 3;
|
||||
int32 StatisticsTimeout = 4;
|
||||
string SysName = 5;
|
||||
string SysDescr = 6;
|
||||
}
|
||||
|
||||
message DeleteBmpRequest {
|
||||
@@ -443,6 +456,7 @@ message Family {
|
||||
AFI_IP = 1;
|
||||
AFI_IP6 = 2;
|
||||
AFI_L2VPN = 25;
|
||||
AFI_LS = 16388;
|
||||
AFI_OPAQUE = 16397;
|
||||
}
|
||||
|
||||
@@ -454,6 +468,7 @@ message Family {
|
||||
SAFI_ENCAPSULATION = 7;
|
||||
SAFI_VPLS = 65;
|
||||
SAFI_EVPN = 70;
|
||||
SAFI_LS = 71;
|
||||
SAFI_MPLS_VPN = 128;
|
||||
SAFI_MPLS_VPN_MULTICAST = 129;
|
||||
SAFI_ROUTE_TARGET_CONSTRAINTS = 132;
|
||||
@@ -466,7 +481,7 @@ message Family {
|
||||
Safi safi = 2;
|
||||
}
|
||||
|
||||
enum Resource {
|
||||
enum TableType {
|
||||
GLOBAL = 0;
|
||||
LOCAL = 1;
|
||||
ADJ_IN = 2;
|
||||
@@ -474,7 +489,7 @@ enum Resource {
|
||||
VRF = 4;
|
||||
}
|
||||
|
||||
message RPKIValidation{
|
||||
message Validation {
|
||||
enum State {
|
||||
STATE_NONE = 0;
|
||||
STATE_NOT_FOUND = 1;
|
||||
@@ -496,12 +511,30 @@ message RPKIValidation{
|
||||
}
|
||||
|
||||
message Path {
|
||||
bytes nlri = 1;
|
||||
repeated bytes pattrs = 2;
|
||||
int64 age = 3;
|
||||
// One of the following defined in "api/attribute.proto":
|
||||
// - IPAddressPrefix
|
||||
// - LabeledIPAddressPrefix
|
||||
// - EncapsulationNLRI
|
||||
// - EVPNEthernetAutoDiscoveryRoute
|
||||
// - EVPNMACIPAdvertisementRoute
|
||||
// - EVPNInclusiveMulticastEthernetTagRoute
|
||||
// - EVPNEthernetSegmentRoute
|
||||
// - EVPNIPPrefixRoute
|
||||
// - EVPNIPMSIRoute
|
||||
// - LabeledVPNIPAddressPrefix
|
||||
// - RouteTargetMembershipNLRI
|
||||
// - FlowSpecNLRI
|
||||
// - VPNFlowSpecNLRI
|
||||
// - OpaqueNLRI
|
||||
// - LsAddrPrefix
|
||||
google.protobuf.Any nlri = 1;
|
||||
// Each attribute must be one of *Attribute defined in
|
||||
// "api/attribute.proto".
|
||||
repeated google.protobuf.Any pattrs = 2;
|
||||
google.protobuf.Timestamp age = 3;
|
||||
bool best = 4;
|
||||
bool is_withdraw = 5;
|
||||
RPKIValidation validation_detail = 7;
|
||||
Validation validation = 7;
|
||||
bool no_implicit_withdraw = 8;
|
||||
Family family = 9;
|
||||
uint32 source_asn = 10;
|
||||
@@ -514,24 +547,8 @@ message Path {
|
||||
bool is_nexthop_invalid = 17;
|
||||
uint32 identifier = 18;
|
||||
uint32 local_identifier = 19;
|
||||
// One of the following defined in "api/attribute.proto":
|
||||
// - IPAddressPrefix
|
||||
// - LabeledIPAddressPrefix
|
||||
// - EncapsulationNLRI
|
||||
// - EVPNEthernetAutoDiscoveryRoute
|
||||
// - EVPNMACIPAdvertisementRoute
|
||||
// - EVPNInclusiveMulticastEthernetTagRoute
|
||||
// - EVPNEthernetSegmentRoute
|
||||
// - EVPNIPPrefixRoute
|
||||
// - LabeledVPNIPAddressPrefix
|
||||
// - RouteTargetMembershipNLRI
|
||||
// - FlowSpecNLRI
|
||||
// - VPNFlowSpecNLRI
|
||||
// - OpaqueNLRI
|
||||
google.protobuf.Any any_nlri = 20;
|
||||
// Each attribute must be one of *Attribute defined in
|
||||
// "api/attribute.proto".
|
||||
repeated google.protobuf.Any any_pattrs = 21;
|
||||
bytes nlri_binary = 20;
|
||||
repeated bytes pattrs_binary = 21;
|
||||
}
|
||||
|
||||
message Destination {
|
||||
@@ -563,7 +580,6 @@ message Peer {
|
||||
RouteServer route_server = 8;
|
||||
GracefulRestart graceful_restart = 9;
|
||||
repeated AfiSafi afi_safis = 10;
|
||||
AddPaths add_paths = 11;
|
||||
}
|
||||
|
||||
message PeerGroup {
|
||||
@@ -577,7 +593,6 @@ message PeerGroup {
|
||||
RouteServer route_server = 8;
|
||||
GracefulRestart graceful_restart = 9;
|
||||
repeated AfiSafi afi_safis = 10;
|
||||
AddPaths add_paths = 11;
|
||||
}
|
||||
|
||||
message DynamicNeighbor {
|
||||
@@ -613,15 +628,11 @@ message PeerConf {
|
||||
RemovePrivateAs remove_private_as = 8;
|
||||
bool route_flap_damping = 9;
|
||||
uint32 send_community = 10;
|
||||
// Each attribute must be one of *Capability defined in
|
||||
// "api/capability.proto".
|
||||
repeated google.protobuf.Any remote_cap = 11;
|
||||
repeated google.protobuf.Any local_cap = 12;
|
||||
string id = 13;
|
||||
string neighbor_interface = 14;
|
||||
string vrf = 15;
|
||||
uint32 allow_own_as = 16;
|
||||
bool replace_peer_as = 17;
|
||||
string neighbor_interface = 11;
|
||||
string vrf = 12;
|
||||
uint32 allow_own_as = 13;
|
||||
bool replace_peer_as = 14;
|
||||
bool admin_down = 15;
|
||||
}
|
||||
|
||||
message PeerGroupConf {
|
||||
@@ -693,18 +704,19 @@ message PeerState {
|
||||
ESTABLISHED = 6;
|
||||
}
|
||||
SessionState session_state = 13;
|
||||
repeated string supported_capabilities = 14;
|
||||
enum AdminState {
|
||||
UP = 0;
|
||||
DOWN = 1;
|
||||
PFX_CT = 2; // prefix counter over limit
|
||||
}
|
||||
AdminState admin_state = 15;
|
||||
uint32 received = 16;
|
||||
uint32 accepted = 17;
|
||||
uint32 advertised = 18;
|
||||
uint32 out_q = 19;
|
||||
uint32 flops = 20;
|
||||
uint32 out_q = 16;
|
||||
uint32 flops = 17;
|
||||
// Each attribute must be one of *Capability defined in
|
||||
// "api/capability.proto".
|
||||
repeated google.protobuf.Any remote_cap = 18;
|
||||
repeated google.protobuf.Any local_cap = 19;
|
||||
string router_id = 20;
|
||||
}
|
||||
|
||||
message Messages {
|
||||
@@ -720,6 +732,8 @@ message Message {
|
||||
uint64 refresh = 5;
|
||||
uint64 discarded = 6;
|
||||
uint64 total = 7;
|
||||
uint64 withdraw_update = 8;
|
||||
uint64 withdraw_prefix = 9;
|
||||
}
|
||||
|
||||
message Queues {
|
||||
@@ -737,6 +751,7 @@ message TimersConfig{
|
||||
uint64 hold_time = 2;
|
||||
uint64 keepalive_interval = 3;
|
||||
uint64 minimum_advertisement_interval = 4;
|
||||
uint64 idle_hold_time_after_reset = 5;
|
||||
}
|
||||
|
||||
message TimersState{
|
||||
@@ -745,8 +760,8 @@ message TimersState{
|
||||
uint64 keepalive_interval = 3;
|
||||
uint64 minimum_advertisement_interval = 4;
|
||||
uint64 negotiated_hold_time = 5;
|
||||
uint64 uptime = 6;
|
||||
uint64 downtime = 7;
|
||||
google.protobuf.Timestamp uptime = 6;
|
||||
google.protobuf.Timestamp downtime = 7;
|
||||
}
|
||||
|
||||
message Transport {
|
||||
@@ -757,10 +772,12 @@ message Transport {
|
||||
string remote_address = 5;
|
||||
uint32 remote_port = 6;
|
||||
uint32 tcp_mss = 7;
|
||||
string bind_interface = 8;
|
||||
}
|
||||
|
||||
message RouteServer {
|
||||
bool route_server_client = 1;
|
||||
bool secondary_route = 2;
|
||||
}
|
||||
|
||||
message GracefulRestart {
|
||||
@@ -801,8 +818,9 @@ message AfiSafiConfig {
|
||||
message AfiSafiState {
|
||||
Family family = 1;
|
||||
bool enabled = 2;
|
||||
uint32 total_paths = 3;
|
||||
uint32 total_prefixes = 4;
|
||||
uint64 received = 3;
|
||||
uint64 accepted = 4;
|
||||
uint64 advertised = 5;
|
||||
}
|
||||
|
||||
message RouteSelectionOptionsConfig {
|
||||
@@ -907,7 +925,8 @@ message LongLivedGracefulRestart {
|
||||
message AfiSafi {
|
||||
MpGracefulRestart mp_graceful_restart = 1;
|
||||
AfiSafiConfig config = 2;
|
||||
ApplyPolicy apply_policy = 3;
|
||||
AfiSafiState state = 3;
|
||||
ApplyPolicy apply_policy = 4;
|
||||
// TODO:
|
||||
// Support the following structures:
|
||||
// - Ipv4Unicast
|
||||
@@ -920,12 +939,12 @@ message AfiSafi {
|
||||
// - L3vpnIpv6Multicast
|
||||
// - L2vpnVpls
|
||||
// - L2vpnEvpn
|
||||
RouteSelectionOptions route_selection_options = 4;
|
||||
UseMultiplePaths use_multiple_paths = 5;
|
||||
PrefixLimit prefix_limits = 6;
|
||||
RouteTargetMembership route_target_membership = 7;
|
||||
LongLivedGracefulRestart long_lived_graceful_restart = 8;
|
||||
AddPaths add_paths = 9;
|
||||
RouteSelectionOptions route_selection_options = 5;
|
||||
UseMultiplePaths use_multiple_paths = 6;
|
||||
PrefixLimit prefix_limits = 7;
|
||||
RouteTargetMembership route_target_membership = 8;
|
||||
LongLivedGracefulRestart long_lived_graceful_restart = 9;
|
||||
AddPaths add_paths = 10;
|
||||
}
|
||||
|
||||
message AddPathsConfig {
|
||||
@@ -961,7 +980,7 @@ enum DefinedType {
|
||||
}
|
||||
|
||||
message DefinedSet {
|
||||
DefinedType type = 1;
|
||||
DefinedType defined_type = 1;
|
||||
string name = 2;
|
||||
repeated string list = 3;
|
||||
repeated Prefix prefixes = 4;
|
||||
@@ -974,7 +993,7 @@ enum MatchType {
|
||||
}
|
||||
|
||||
message MatchSet {
|
||||
MatchType type = 1;
|
||||
MatchType match_type = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
@@ -985,7 +1004,7 @@ enum AsPathLengthType {
|
||||
}
|
||||
|
||||
message AsPathLength {
|
||||
AsPathLengthType type = 1;
|
||||
AsPathLengthType length_type = 1;
|
||||
uint32 length = 2;
|
||||
}
|
||||
|
||||
@@ -1022,7 +1041,7 @@ enum CommunityActionType {
|
||||
}
|
||||
|
||||
message CommunityAction {
|
||||
CommunityActionType type = 1;
|
||||
CommunityActionType action_type = 1;
|
||||
repeated string communities = 2;
|
||||
}
|
||||
|
||||
@@ -1032,7 +1051,7 @@ enum MedActionType {
|
||||
}
|
||||
|
||||
message MedAction {
|
||||
MedActionType type = 1;
|
||||
MedActionType action_type = 1;
|
||||
int64 value = 2;
|
||||
}
|
||||
|
||||
@@ -1150,8 +1169,8 @@ message RPKIConf {
|
||||
}
|
||||
|
||||
message RPKIState {
|
||||
int64 uptime = 1;
|
||||
int64 downtime = 2;
|
||||
google.protobuf.Timestamp uptime = 1;
|
||||
google.protobuf.Timestamp downtime = 2;
|
||||
bool up = 3;
|
||||
uint32 record_ipv4 = 4;
|
||||
uint32 record_ipv6 = 5;
|
||||
|
||||
Reference in New Issue
Block a user