enum ebgp;
enum ibgp;
enum rr-client;
+ enum internal;
}
}
- grouping route {
- container attributes {
- uses bgp-msg:path-attributes;
+ 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;
+ }
+
grouping rib {
list tables {
uses bgp-mp:bgp-table-type;
}
choice routes {
- case ipv4-routes-case {
- container ipv4-routes {
- list ipv4-route {
- when "../../afi = ipv4";
-
- leaf prefix {
- type inet:ipv4-prefix;
- }
- key prefix;
-
- uses route;
- }
- }
- }
- case ipv6-routes-case {
- container ipv6-routes {
- list ipv6-route {
- when "../../afi = ipv6";
-
- leaf prefix {
- type inet:ipv6-prefix;
- }
- key prefix;
-
- uses route;
- }
- }
- }
+ // to be augmented
}
}
}
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;
+ }
container adj-rib-in {
description "Routes as we have received them from the peer.";
uses rib;