Route Constrain policies
[bgpcep.git] / bgp / openconfig-api / src / main / yang / odl-bgp-default-policy.yang
index 24d8739c2f0706170e3a00b7d6af08f84a05898e..e2c57e38bd49f3d4046b26bb88beed570e752732 100644 (file)
@@ -229,6 +229,17 @@ module odl-bgp-policy {
         }
     }
 
+    augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:conditions/bgppol:bgp-conditions {
+        ext:augment-identifier match-afi-safi-not-in-condition;
+        leaf-list afi-safi-not-in {
+            type identityref {
+              base "bgp-types:afi-safi-type";
+            }
+            description
+              "List of address families which the NLRI must not be within";
+        }
+    }
+
     augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:conditions/bgppol:bgp-conditions {
         ext:augment-identifier match-bgp-neighbor-condition;
         uses match-bgp-neighbor-grouping;
@@ -249,6 +260,13 @@ module odl-bgp-policy {
         uses match-cluster-id-set-condition-grouping;
     }
 
+    augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:conditions/bgppol:bgp-conditions {
+        ext:augment-identifier vpn-non-member-condition;
+        container vpn-non-member {
+            presence "Match Route Target Attribute with Route Target memberships of destiny peer. Asserts peers is a non member.";
+        }
+    }
+
     augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:actions/bgp-pol:bgp-actions {
         ext:augment-identifier reflect-attributes-actions;
         container reflect-attributes-actions {
@@ -279,6 +297,24 @@ module odl-bgp-policy {
         }
     }
 
+    augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:actions/bgp-pol:bgp-actions {
+        ext:augment-identifier set-originator-id-to-advertizer-router-id;
+        container set-originator-id-to-advertizer-router-id {
+
+        presence "node is present in the config data to apply the set-originator-id-to-advertizer-router-id action";
+        description "action to set router-id of the advertiser as Originator attribute";
+        }
+    }
+
+    augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:actions/bgp-pol:bgp-actions {
+        ext:augment-identifier set-local-address-as-next-hop;
+        container set-local-address-as-next-hop {
+
+        presence "node is present in the config data to apply set-local-address-as-next-hop action";
+        description "action to set local address as next hop";
+        }
+    }
+
     augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:actions/bgp-pol:bgp-actions {
         ext:augment-identifier set-originator-id-prepend;
         container set-originator-id-prepend {