Route Constrain policies
[bgpcep.git] / bgp / extensions / route-target / src / main / yang / bgp-route-target-constrain.yang
index ea063192018bbe132299e005c565fecedbaafb14..c582b56210e11fea235eb2185dac9ccf8686ab6f 100644 (file)
@@ -8,6 +8,9 @@ module bgp-route-target-constrain {
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
     import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
+    import openconfig-routing-policy { prefix rpol; }
+    import openconfig-bgp-policy { prefix bgp-pol; }
+    import yang-ext { prefix ext; revision-date "2013-07-09"; }
 
     organization "AT&T Services, Inc.";
 
@@ -136,4 +139,13 @@ module bgp-route-target-constrain {
             uses route-target-constrain-routes;
         }
     }
+
+    augment /rpol:routing-policy/rpol:policy-definitions/rpol:policy-definition/rpol:statements/rpol:statement/rpol:actions/bgp-pol:bgp-actions {
+        ext:augment-identifier client-attribute-prepend;
+        container client-attribute-prepend {
+
+        presence "node is present in the config data to use the client attributes prepend action";
+        description "action to use attribute from advertized from a client(rfc4684)";
+        }
+    }
 }
\ No newline at end of file