summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.proto
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-01 20:42:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-08 20:56:46 +0900
commitecd079e318e1c5d5aa2d2f1348a4ad1a37daec37 (patch)
treebc96bd7b3173b4ba2d32cdf268027bdf50ab89cd /api/gobgp.proto
parentef934f76a52df814d5c77f9d0c3f9acaeb0856d9 (diff)
api: add api to configure vrf
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r--api/gobgp.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 92f9fcf5..5e6fc867 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -41,6 +41,9 @@ service Grpc {
rpc MonitorPeerState(Arguments) returns (stream Peer) {}
rpc GetMrt(MrtArguments) returns (stream MrtMessage) {}
rpc GetRPKI(Arguments) returns (stream ROA) {}
+ rpc GetVrfs(Arguments) returns (stream Vrf) {}
+ rpc GetVrf(Arguments) returns (stream Path) {}
+ rpc ModVrf(ModVrfArguments) returns (Error) {}
}
message Error {
@@ -83,6 +86,11 @@ message MrtArguments {
string neighbor_address = 4;
}
+message ModVrfArguments {
+ Operation operation = 1;
+ Vrf vrf = 2;
+}
+
enum Resource {
GLOBAL = 0;
LOCAL = 1;
@@ -94,6 +102,7 @@ enum Resource {
POLICY_COMMUNITY = 7;
POLICY_ROUTEPOLICY = 8;
POLICY_EXTCOMMUNITY = 9;
+ VRF = 10;
}
enum Operation {
@@ -520,3 +529,10 @@ message ROA {
uint32 maxlen = 3;
string prefix = 4;
}
+
+message Vrf {
+ string name = 1;
+ bytes rd = 2;
+ repeated bytes import_rt = 3;
+ repeated bytes export_rt = 4;
+}