summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-25 10:06:56 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-25 15:16:45 +0000
commit99cccf981227a482cbd6404b664bd4f7cc9a1720 (patch)
treee8c93e477bb245122e4771cfe879db6833bcc04e /api/gobgp.proto
parent27d0d45b6319658bc0a43511d1909a411df40b08 (diff)
table: add support for encapsulation nlri
add encap end point route(10.0.0.1) with vni 20 $ gobgp global rib add 10.0.0.1 20 -a encap check it $ gobgp global rib -a encap Please specify one command of: add or del Network Next Hop AS_PATH Age Attrs *> 10.0.0.1 0.0.0.0 [64512] 00:00:01 [{Origin: IGP} {Encap: < VXLAN | color: 20 >}] Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto14
1 files changed, 13 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 81b32ffb..611f1abc 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -73,6 +73,7 @@ enum SAFI {
UNICAST = 1;
MULTICAST = 2;
MPLS_LABEL = 4;
+ ENCAP = 7;
VPLS = 65;
EVPN = 70;
MPLS_VPN = 128;
@@ -142,9 +143,20 @@ message Nlri {
string nexthop = 4;
}
+enum ENCAP_SUBTLV_TYPE {
+ UNKNOWN_SUBTLV_TYPE = 0;
+ ENCAPSULATION = 1;
+ PROTOCOL = 2;
+ COLOR = 4;
+}
+
message TunnelEncapSubTLV {
- uint32 type = 1;
+ ENCAP_SUBTLV_TYPE type = 1;
string value = 2;
+ uint32 key = 3;
+ string cookie = 4;
+ uint32 protocol = 5;
+ uint32 color = 6;
}
message TunnelEncapTLV {