prefix "gbp-policy";
import gbp-common {prefix gbp-common;}
- import ietf-inet-types {prefix inet;}
+ import ietf-inet-types {
+ prefix inet;
+ revision-date 2010-09-24;
+ }
description
"This module defines the group-based policy configuration
// Global Configuration
// ********************
+ grouping classifier-definition-fields {
+ uses subject-feature-definition;
+
+ leaf id {
+ description "A unique ID for the classifier definition";
+ type gbp-common:classifier-definition-id;
+ mandatory true;
+ }
+
+ leaf name {
+ description
+ "A user-visible name for the classifier definition";
+ type gbp-common:classifier-name;
+ }
+ }
+
+ grouping action-definition-fields {
+ uses subject-feature-definition;
+
+ leaf id {
+ description "A unique ID for the action";
+ type gbp-common:action-definition-id;
+ mandatory true;
+ }
+
+ leaf name {
+ description "A user-visible name for the action";
+ type gbp-common:action-name;
+ }
+ }
+
container subject-feature-definitions {
description
"Contains configuration for the set of actions and
references it.";
key "id";
- uses subject-feature-definition;
-
- leaf id {
- description "A unique ID for the classifier definition";
- type gbp-common:classifier-definition-id;
- mandatory true;
- }
-
- leaf name {
- description
- "A user-visible name for the classifier definition";
- type gbp-common:classifier-name;
- }
-
- leaf parent {
- description
- "Parent classifier definition from which we inherit";
- type leafref {
- path "/subject-feature-definitions/classifier-definition/id";
- }
- }
+ uses classifier-definition-fields;
}
list action-definition {
references it.";
key "id";
- uses subject-feature-definition;
-
- leaf id {
- description "A unique ID for the action";
- type gbp-common:action-definition-id;
- mandatory true;
- }
-
- leaf name {
- description "A user-visible name for the action";
- type gbp-common:action-name;
- }
-
- leaf parent {
- description
- "Parent action definition from which we inherit";
- type leafref {
- path "/subject-feature-definitions/action-definition/id";
- }
- }
+ uses action-definition-fields;
}
}
}
list gateways {
description
- "External gateways for subnets we serve,
+ "External gateways for subnets we serve,
includes prefixes for static routing";
key "gateway";
leaf gateway {
type inet:ip-prefix;
}
}
-
+
}
}