summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.pb.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-29 16:15:06 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-05 17:24:36 +0900
commit2017bdc7a9452d4a66dd062016f1b68fbf4ef09b (patch)
treef49e3cc2b126b3a83daa93fee292ee43ebb3da36 /api/gobgp.pb.go
parentb04d28518aa00b0d7faec7efdb729b78b90c529e (diff)
api/packet: add evpn extended community structs
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.pb.go')
-rw-r--r--api/gobgp.pb.go128
1 files changed, 71 insertions, 57 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index a7e0d90d..71e3f454 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -292,55 +292,6 @@ func (x Origin) String() string {
return proto.EnumName(Origin_name, int32(x))
}
-type EXTENDED_COMMUNITIE_TYPE int32
-
-const (
- EXTENDED_COMMUNITIE_TYPE_TWO_OCTET_AS_SPECIFIC EXTENDED_COMMUNITIE_TYPE = 0
- EXTENDED_COMMUNITIE_TYPE_IP4_SPECIFIC EXTENDED_COMMUNITIE_TYPE = 1
- EXTENDED_COMMUNITIE_TYPE_FOUR_OCTET_AS_SPECIFIC EXTENDED_COMMUNITIE_TYPE = 2
- EXTENDED_COMMUNITIE_TYPE_OPAQUE EXTENDED_COMMUNITIE_TYPE = 3
-)
-
-var EXTENDED_COMMUNITIE_TYPE_name = map[int32]string{
- 0: "TWO_OCTET_AS_SPECIFIC",
- 1: "IP4_SPECIFIC",
- 2: "FOUR_OCTET_AS_SPECIFIC",
- 3: "OPAQUE",
-}
-var EXTENDED_COMMUNITIE_TYPE_value = map[string]int32{
- "TWO_OCTET_AS_SPECIFIC": 0,
- "IP4_SPECIFIC": 1,
- "FOUR_OCTET_AS_SPECIFIC": 2,
- "OPAQUE": 3,
-}
-
-func (x EXTENDED_COMMUNITIE_TYPE) String() string {
- return proto.EnumName(EXTENDED_COMMUNITIE_TYPE_name, int32(x))
-}
-
-type EXTENDED_COMMUNITIE_SUBTYPE int32
-
-const (
- EXTENDED_COMMUNITIE_SUBTYPE_ORIGIN_VALIDATION EXTENDED_COMMUNITIE_SUBTYPE = 0
- EXTENDED_COMMUNITIE_SUBTYPE_ROUTE_TARGET EXTENDED_COMMUNITIE_SUBTYPE = 2
- EXTENDED_COMMUNITIE_SUBTYPE_ROUTE_ORIGIN EXTENDED_COMMUNITIE_SUBTYPE = 3
-)
-
-var EXTENDED_COMMUNITIE_SUBTYPE_name = map[int32]string{
- 0: "ORIGIN_VALIDATION",
- 2: "ROUTE_TARGET",
- 3: "ROUTE_ORIGIN",
-}
-var EXTENDED_COMMUNITIE_SUBTYPE_value = map[string]int32{
- "ORIGIN_VALIDATION": 0,
- "ROUTE_TARGET": 2,
- "ROUTE_ORIGIN": 3,
-}
-
-func (x EXTENDED_COMMUNITIE_SUBTYPE) String() string {
- return proto.EnumName(EXTENDED_COMMUNITIE_SUBTYPE_name, int32(x))
-}
-
type TUNNEL_TYPE int32
const (
@@ -563,6 +514,64 @@ func (x Error_ErrorCode) String() string {
return proto.EnumName(Error_ErrorCode_name, int32(x))
}
+type ExtendedCommunity_Type int32
+
+const (
+ ExtendedCommunity_TWO_OCTET_AS_SPECIFIC ExtendedCommunity_Type = 0
+ ExtendedCommunity_IP4_SPECIFIC ExtendedCommunity_Type = 1
+ ExtendedCommunity_FOUR_OCTET_AS_SPECIFIC ExtendedCommunity_Type = 2
+ ExtendedCommunity_OPAQUE ExtendedCommunity_Type = 3
+ ExtendedCommunity_EVPN ExtendedCommunity_Type = 4
+)
+
+var ExtendedCommunity_Type_name = map[int32]string{
+ 0: "TWO_OCTET_AS_SPECIFIC",
+ 1: "IP4_SPECIFIC",
+ 2: "FOUR_OCTET_AS_SPECIFIC",
+ 3: "OPAQUE",
+ 4: "EVPN",
+}
+var ExtendedCommunity_Type_value = map[string]int32{
+ "TWO_OCTET_AS_SPECIFIC": 0,
+ "IP4_SPECIFIC": 1,
+ "FOUR_OCTET_AS_SPECIFIC": 2,
+ "OPAQUE": 3,
+ "EVPN": 4,
+}
+
+func (x ExtendedCommunity_Type) String() string {
+ return proto.EnumName(ExtendedCommunity_Type_name, int32(x))
+}
+
+type ExtendedCommunity_Subtype int32
+
+const (
+ ExtendedCommunity_ORIGIN_VALIDATION ExtendedCommunity_Subtype = 0
+ ExtendedCommunity_ROUTE_TARGET ExtendedCommunity_Subtype = 2
+ ExtendedCommunity_ROUTE_ORIGIN ExtendedCommunity_Subtype = 3
+ ExtendedCommunity_ESI_LABEL ExtendedCommunity_Subtype = 4
+ ExtendedCommunity_MAC_MOBILITY ExtendedCommunity_Subtype = 5
+)
+
+var ExtendedCommunity_Subtype_name = map[int32]string{
+ 0: "ORIGIN_VALIDATION",
+ 2: "ROUTE_TARGET",
+ 3: "ROUTE_ORIGIN",
+ 4: "ESI_LABEL",
+ 5: "MAC_MOBILITY",
+}
+var ExtendedCommunity_Subtype_value = map[string]int32{
+ "ORIGIN_VALIDATION": 0,
+ "ROUTE_TARGET": 2,
+ "ROUTE_ORIGIN": 3,
+ "ESI_LABEL": 4,
+ "MAC_MOBILITY": 5,
+}
+
+func (x ExtendedCommunity_Subtype) String() string {
+ return proto.EnumName(ExtendedCommunity_Subtype_name, int32(x))
+}
+
type Error struct {
Code Error_ErrorCode `protobuf:"varint,1,opt,name=code,enum=api.Error_ErrorCode" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
@@ -733,12 +742,17 @@ func (m *Aggregator) String() string { return proto.CompactTextString(m) }
func (*Aggregator) ProtoMessage() {}
type ExtendedCommunity struct {
- Type EXTENDED_COMMUNITIE_TYPE `protobuf:"varint,1,opt,name=type,enum=api.EXTENDED_COMMUNITIE_TYPE" json:"type,omitempty"`
- Subtype EXTENDED_COMMUNITIE_SUBTYPE `protobuf:"varint,2,opt,name=subtype,enum=api.EXTENDED_COMMUNITIE_SUBTYPE" json:"subtype,omitempty"`
- IsTransitive bool `protobuf:"varint,3,opt,name=is_transitive" json:"is_transitive,omitempty"`
- Asn uint32 `protobuf:"varint,4,opt,name=asn" json:"asn,omitempty"`
- Ipv4 string `protobuf:"bytes,5,opt,name=ipv4" json:"ipv4,omitempty"`
- LocalAdmin uint32 `protobuf:"varint,6,opt,name=local_admin" json:"local_admin,omitempty"`
+ Type ExtendedCommunity_Type `protobuf:"varint,1,opt,name=type,enum=api.ExtendedCommunity_Type" json:"type,omitempty"`
+ Subtype ExtendedCommunity_Subtype `protobuf:"varint,2,opt,name=subtype,enum=api.ExtendedCommunity_Subtype" json:"subtype,omitempty"`
+ IsTransitive bool `protobuf:"varint,3,opt,name=is_transitive" json:"is_transitive,omitempty"`
+ Asn uint32 `protobuf:"varint,4,opt,name=asn" json:"asn,omitempty"`
+ Ipv4 string `protobuf:"bytes,5,opt,name=ipv4" json:"ipv4,omitempty"`
+ LocalAdmin uint32 `protobuf:"varint,6,opt,name=local_admin" json:"local_admin,omitempty"`
+ IsSingleActive bool `protobuf:"varint,7,opt,name=is_single_active" json:"is_single_active,omitempty"`
+ Label uint32 `protobuf:"varint,8,opt,name=label" json:"label,omitempty"`
+ EsImport string `protobuf:"bytes,9,opt,name=es_import" json:"es_import,omitempty"`
+ Sequence uint32 `protobuf:"varint,10,opt,name=sequence" json:"sequence,omitempty"`
+ IsSticky bool `protobuf:"varint,11,opt,name=is_sticky" json:"is_sticky,omitempty"`
}
func (m *ExtendedCommunity) Reset() { *m = ExtendedCommunity{} }
@@ -1398,14 +1412,14 @@ func init() {
proto.RegisterEnum("api.ROUTE_DISTINGUISHER_TYPE", ROUTE_DISTINGUISHER_TYPE_name, ROUTE_DISTINGUISHER_TYPE_value)
proto.RegisterEnum("api.BGP_CAPABILITY", BGP_CAPABILITY_name, BGP_CAPABILITY_value)
proto.RegisterEnum("api.Origin", Origin_name, Origin_value)
- proto.RegisterEnum("api.EXTENDED_COMMUNITIE_TYPE", EXTENDED_COMMUNITIE_TYPE_name, EXTENDED_COMMUNITIE_TYPE_value)
- proto.RegisterEnum("api.EXTENDED_COMMUNITIE_SUBTYPE", EXTENDED_COMMUNITIE_SUBTYPE_name, EXTENDED_COMMUNITIE_SUBTYPE_value)
proto.RegisterEnum("api.TUNNEL_TYPE", TUNNEL_TYPE_name, TUNNEL_TYPE_value)
proto.RegisterEnum("api.PMSI_TUNNEL_TYPE", PMSI_TUNNEL_TYPE_name, PMSI_TUNNEL_TYPE_value)
proto.RegisterEnum("api.EVPN_TYPE", EVPN_TYPE_name, EVPN_TYPE_value)
proto.RegisterEnum("api.ENCAP_SUBTLV_TYPE", ENCAP_SUBTLV_TYPE_name, ENCAP_SUBTLV_TYPE_value)
proto.RegisterEnum("api.BGP_ATTR_TYPE", BGP_ATTR_TYPE_name, BGP_ATTR_TYPE_value)
proto.RegisterEnum("api.Error_ErrorCode", Error_ErrorCode_name, Error_ErrorCode_value)
+ proto.RegisterEnum("api.ExtendedCommunity_Type", ExtendedCommunity_Type_name, ExtendedCommunity_Type_value)
+ proto.RegisterEnum("api.ExtendedCommunity_Subtype", ExtendedCommunity_Subtype_name, ExtendedCommunity_Subtype_value)
}
// Client API for Grpc service