grouping context-key {
leaf context-type {
type context-type-ref;
- mandatory true;
}
leaf context-id {
type gbp-common:context-id;
- mandatory true;
}
}
}
}
- grouping forwarding-with-tenant-fields {
- leaf tenant-id {
- type gbp-common:tenant-id;
- description
- "The tenant with which forwarding-context is associated";
- }
+ grouping forwarding-fields {
- list forwarding-context {
- key "context-type context-id";
+ container parent {
uses context-key;
-
- uses has-address-type;
- container parent {
- uses context-key;
- }
}
- list network-domain {
- key "network-domain-type network-domain-id";
- uses network-domain-key;
-
- container parent {
- uses context-key;
- }
-
- description "Network domain can be augmented with further information.";
+ leaf name {
+ type gbp-common:name;
}
}
container forwarding {
list forwarding-by-tenant {
key tenant-id;
- uses forwarding-with-tenant-fields;
+ leaf tenant-id {
+ type gbp-common:tenant-id;
+ description
+ "The tenant with which forwarding-context is associated";
+ }
+
+ list forwarding-context {
+ key "context-type context-id";
+ uses context-key;
+
+ uses forwarding-fields;
+ }
+
+ list network-domain {
+ key "network-domain-type network-domain-id";
+ uses network-domain-key;
+
+ uses forwarding-fields;
+ description "Network domain can be augmented with further information.";
+ }
}
}