diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-06-27 23:28:54 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-01 21:24:40 +0900 |
commit | ccfded2fee746664b576df0a068aec727cb5fae5 (patch) | |
tree | c52f10638ad74bca773a7e6120a2edf507670221 /api | |
parent | 8a3724c7fdd6f02311e669f2aa0fc28190faaf66 (diff) |
server/cli: support add/delete EVPN_INCLUSIVE_MULTICAST_ETHERNET_TAG route
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r-- | api/gobgp.pb.go | 22 | ||||
-rw-r--r-- | api/gobgp.proto | 9 |
2 files changed, 29 insertions, 2 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go index e0cde493..bc1cad51 100644 --- a/api/gobgp.pb.go +++ b/api/gobgp.pb.go @@ -21,6 +21,7 @@ It has these top-level messages: ExtendedCommunity EVPNNlri EvpnMacIpAdvertisement + EvpnInclusiveMulticastEthernetTag RTNlri Nlri TunnelEncapSubTLV @@ -690,7 +691,8 @@ func (*ExtendedCommunity) ProtoMessage() {} type EVPNNlri struct { Type EVPN_TYPE `protobuf:"varint,1,opt,name=type,enum=api.EVPN_TYPE" json:"type,omitempty"` // EvpnAutoDiscoveryRoute = 2; - MacIpAdv *EvpnMacIpAdvertisement `protobuf:"bytes,3,opt,name=mac_ip_adv" json:"mac_ip_adv,omitempty"` + MacIpAdv *EvpnMacIpAdvertisement `protobuf:"bytes,3,opt,name=mac_ip_adv" json:"mac_ip_adv,omitempty"` + MulticastEtag *EvpnInclusiveMulticastEthernetTag `protobuf:"bytes,4,opt,name=multicast_etag" json:"multicast_etag,omitempty"` } func (m *EVPNNlri) Reset() { *m = EVPNNlri{} } @@ -704,6 +706,13 @@ func (m *EVPNNlri) GetMacIpAdv() *EvpnMacIpAdvertisement { return nil } +func (m *EVPNNlri) GetMulticastEtag() *EvpnInclusiveMulticastEthernetTag { + if m != nil { + return m.MulticastEtag + } + return nil +} + type EvpnMacIpAdvertisement struct { MacAddr string `protobuf:"bytes,1,opt,name=mac_addr" json:"mac_addr,omitempty"` MacAddrLen uint32 `protobuf:"varint,2,opt,name=mac_addr_len" json:"mac_addr_len,omitempty"` @@ -719,6 +728,17 @@ func (m *EvpnMacIpAdvertisement) Reset() { *m = EvpnMacIpAdvertisement{} func (m *EvpnMacIpAdvertisement) String() string { return proto.CompactTextString(m) } func (*EvpnMacIpAdvertisement) ProtoMessage() {} +type EvpnInclusiveMulticastEthernetTag struct { + Rd string `protobuf:"bytes,1,opt,name=rd" json:"rd,omitempty"` + Etag uint32 `protobuf:"varint,2,opt,name=etag" json:"etag,omitempty"` + IpAddr string `protobuf:"bytes,3,opt,name=ip_addr" json:"ip_addr,omitempty"` + IpAddrLen uint32 `protobuf:"varint,4,opt,name=ip_addr_len" json:"ip_addr_len,omitempty"` +} + +func (m *EvpnInclusiveMulticastEthernetTag) Reset() { *m = EvpnInclusiveMulticastEthernetTag{} } +func (m *EvpnInclusiveMulticastEthernetTag) String() string { return proto.CompactTextString(m) } +func (*EvpnInclusiveMulticastEthernetTag) ProtoMessage() {} + type RTNlri struct { Asn uint32 `protobuf:"varint,1,opt,name=asn" json:"asn,omitempty"` Target *ExtendedCommunity `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` diff --git a/api/gobgp.proto b/api/gobgp.proto index 1467ab51..1e789502 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -210,7 +210,7 @@ message EVPNNlri { EVPN_TYPE type = 1; // EvpnAutoDiscoveryRoute = 2; EvpnMacIpAdvertisement mac_ip_adv = 3; -// EvpnInclusiveMulticastEthernetTag = 4; + EvpnInclusiveMulticastEthernetTag multicast_etag = 4; // EvpnEthernetSegmentRoute = 5; } @@ -225,6 +225,13 @@ message EvpnMacIpAdvertisement { repeated uint32 labels = 8; } +message EvpnInclusiveMulticastEthernetTag { + string rd = 1; + uint32 etag = 2; + string ip_addr = 3; + uint32 ip_addr_len = 4; +} + message RTNlri { uint32 asn = 1; ExtendedCommunity target = 2; |