BUG-4931: Simple routing policy
[bgpcep.git] / bgp / rib-api / src / main / yang / bgp-rib.yang
index 3432241a29463a7c99ab2978503a3f99ff7de551..0133a4968316ef02b1cf7abb53623c3a6c2e4fb6 100644 (file)
@@ -53,6 +53,13 @@ module bgp-rib {
         }
     }
 
+    typedef simple-routing-policy {
+        type enumeration {
+            enum announce-none { description "Don't announce routes to this peer"; }
+            enum learn-none { description "Don't learn routes from this peer"; }
+        }
+    }
+
     grouping route {
         uses bgp-msg:path-attributes;
     }
@@ -104,6 +111,9 @@ module bgp-rib {
                     type peer-role;
                     mandatory true;
                 }
+                leaf simple-routing-policy {
+                    type simple-routing-policy;
+                }
                 list supported-tables {
                     key "afi safi";
                     uses bgp-mp:bgp-add-path-table-type;