diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-16 15:04:32 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-20 10:33:10 +0900 |
commit | 722975bfafdd723160dced623936c361475c9bff (patch) | |
tree | ade5ddb978c797de4864fff814adf2781dac2108 /api/gobgp.proto | |
parent | 434aa169f457d6bbc4d923641fc57e2c84fe6ef9 (diff) |
policy: another cleanup
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index b91ef183..7ef404f4 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -43,6 +43,8 @@ service GobgpApi { rpc GetROA(Arguments) returns (stream ROA) {} rpc GetVrfs(Arguments) returns (stream Vrf) {} rpc ModVrf(ModVrfArguments) returns (Error) {} + rpc GetDefinedSet(DefinedSet) returns (DefinedSet) {} + rpc GetDefinedSets(DefinedSet) returns (stream DefinedSet) {} } message Error { @@ -177,10 +179,21 @@ message Prefix { uint32 mask_length_max = 3; } +message DefinedSet { + int32 type = 1; + string name = 2; + repeated string list = 3; + repeated Prefix prefixes = 4; +} + message PrefixSet { string name = 1; - repeated Prefix list = 2; - int32 option = 3; + int32 option = 2; +} + +message MatchSet { + string name = 1; + int32 option = 2; } message AsPathLength { @@ -188,12 +201,6 @@ message AsPathLength { int32 type = 2; } -message MatchSet { - string name = 1; - repeated string list = 2; - int32 option = 3; -} - message Conditions { PrefixSet prefix_set = 1; MatchSet neighbor_set = 2; @@ -253,7 +260,7 @@ enum PolicyType { message ApplyPolicy { PolicyType type = 1; - repeated PolicyDefinition policies = 2; + repeated string policies = 2; RouteAction default = 3; } |