diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-05-14 16:51:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-05-19 16:33:16 +0900 |
commit | 749df65ac97da627e8f35d91ea4e2fe585b88d5d (patch) | |
tree | c9fcbf9684985349e77d68488b79578ee2b0e61d /api/gobgp.proto | |
parent | 0349e0d69926a6cb16467fcd88edf69cbd0f524e (diff) |
cli: support the AsPathLength to display in routing policy
% gobgp -u 10.0.255.1 policy routepolicy policy0
PolicyName policy0:
StatementName st0:
Conditions:
PrefixSet: ps0 192.168.0.0/16 16..24
NeighborSet: ns0 10.0.0.2
AsPathLength: 10 eq
MatchOption: ALL
Actions:
REJECT
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index 362c619a..4feca48d 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -366,10 +366,16 @@ message NeighborSet { repeated Neighbor neighbor_list = 2; } +message AsPathLength { + string value = 1; + string operator = 2; +} + message Conditions { PrefixSet match_prefix_set = 1; NeighborSet match_neighbor_set = 2; - int64 match_set_options = 3; + AsPathLength match_as_path_length = 3; + int64 match_set_options = 4; } message Actions { |