diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-06-16 19:55:34 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-06-17 13:41:31 +0900 |
commit | 3f845ad08fbc24e2db2eb8572a2955091853e3bf (patch) | |
tree | 7a1fbef89611621ab864f0b840961eb7013d3833 /api/gobgp.proto | |
parent | 4db834afe35306ede35a73aeb4486844da264920 (diff) |
cli: add community subcommand to policy conditions and actions
Diffstat (limited to 'api/gobgp.proto')
-rw-r--r-- | api/gobgp.proto | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/api/gobgp.proto b/api/gobgp.proto index e61c2243..b4beb1c2 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -76,7 +76,8 @@ enum Resource { POLICY_PREFIX = 4; POLICY_NEIGHBOR = 5; POLICY_ASPATH = 6; - POLICY_ROUTEPOLICY = 7; + POLICY_COMMUNITY = 7; + POLICY_ROUTEPOLICY = 8; } enum Operation { @@ -379,16 +380,28 @@ message AsPathSet { repeated string as_path_members = 2; } +message CommunitySet { + string community_set_name = 1; + repeated string community_members = 2; +} + message Conditions { PrefixSet match_prefix_set = 1; NeighborSet match_neighbor_set = 2; AsPathLength match_as_path_length = 3; AsPathSet match_as_path_set = 4; - string match_set_options = 5; + CommunitySet match_community_set = 5; + string match_set_options = 6; +} + +message CommunityAction { + repeated string communities = 1; + string options = 2; } message Actions { string route_action = 1; + CommunityAction community = 2; } message Statement { |