summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-06 05:38:00 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-10 05:18:17 +0000
commitd46da74d4fba3fe169d0c4f05b0e657ec95f5336 (patch)
tree94b962ebdf526bc4f84e5aef5ce18707dbfd933f /tools
parent2cd0de0139cb47edac0c418f4efd4e5c6d185f63 (diff)
policy: support large-community match/action
close #1133 Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang44
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 469ecc48..2b1883cf 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -829,6 +829,24 @@ module gobgp {
}
augment "/rpol:routing-policy/rpol:defined-sets/" +
+ "bgp-pol:bgp-defined-sets" {
+ container large-community-sets {
+ list large-community-set {
+ key "large-community-set-name";
+
+ leaf large-community-set-name {
+ type string;
+ }
+ leaf-list large-community {
+ type string;
+ description
+ "extended community set member";
+ }
+ }
+ }
+ }
+
+ augment "/rpol:routing-policy/rpol:defined-sets/" +
"bgp-pol:bgp-defined-sets/bgp-pol:as-path-sets/bgp-pol:as-path-set" {
description "alternative for the existing as-path-set-member";
@@ -869,6 +887,32 @@ module gobgp {
}
}
+ augment "/rpol:routing-policy/rpol:policy-definitions/" +
+ "rpol:policy-definition/rpol:statements/rpol:statement/" +
+ "rpol:conditions/bgp-pol:bgp-conditions" {
+ container match-large-community-set {
+ leaf large-community-set {
+ type string;
+ }
+ uses rpol:match-set-options-group;
+ }
+ }
+
+ augment "/rpol:routing-policy/rpol:policy-definitions/" +
+ "rpol:policy-definition/rpol:statements/rpol:statement/" +
+ "rpol:actions/bgp-pol:bgp-actions" {
+ container set-large-community {
+ container set-large-community-method {
+ leaf-list communities {
+ type string;
+ }
+ }
+ leaf options {
+ type bgp-pol:bgp-set-community-option-type;
+ }
+ }
+ }
+
augment "/bgp:bgp" {
description "additional rpki configuration and state";
uses gobgp-rpki-servers;