diff options
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 16 |
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; +} |