summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-07-19 13:18:38 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-07-19 13:18:38 +0200
commit74290324e58983057e0a6e5ae37eb7e6a1646207 (patch)
tree16db0d2094edf123f57014693febb53167d9a582 /v3po/api/src/main/yang
parentb75e81723fbdd525d765d86e6eb9ca7ce558c6b0 (diff)
HONEYCOMB-49: fix outstanding issues found in review
Change-Id: Ic3314c8ddf75bda89f5170a503cf589f2ae743ab Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang')
-rw-r--r--v3po/api/src/main/yang/vpp-classifier.yang43
1 files changed, 33 insertions, 10 deletions
diff --git a/v3po/api/src/main/yang/vpp-classifier.yang b/v3po/api/src/main/yang/vpp-classifier.yang
index b54798857..1351f9e38 100644
--- a/v3po/api/src/main/yang/vpp-classifier.yang
+++ b/v3po/api/src/main/yang/vpp-classifier.yang
@@ -81,10 +81,9 @@ module vpp-classifier {
}
}
- grouping classify-table-attributes {
+ grouping classify-table-base-attributes {
description
- "Defines classify table attributes that are mapped to classify_add_del_table
- and classify_table_info_reply messages parameters.";
+ "Defines classify table attributes that are mapped to classify_add_del_table message parameters.";
leaf nbuckets {
mandatory true;
@@ -122,12 +121,6 @@ module vpp-classifier {
description
"Defines match mask (multiple of 16 bytes)";
}
- leaf active_sessions {
- type uint32;
- config false;
- description
- "Number of sessions defined for the classify table.";
- }
list classify-session {
key "match";
@@ -150,6 +143,19 @@ module vpp-classifier {
}
}
+ grouping classify-table-operational-attributes {
+ description
+ "Defines classify table operational attributes (present in classify_table_info_reply message
+ but not in classify_add_del_table).";
+
+ leaf active_sessions {
+ type uint32;
+ config false;
+ description
+ "Number of sessions defined for the classify table.";
+ }
+ }
+
container vpp-classifier {
list classify-table {
key "name";
@@ -160,7 +166,24 @@ module vpp-classifier {
"Hides classify table identifier managed by vpp.";
}
- uses classify-table-attributes;
+ uses classify-table-base-attributes;
+ }
+ }
+
+ container vpp-classifier-state {
+ config false;
+
+ list classify-table {
+ key "name";
+
+ leaf name {
+ type string;
+ description
+ "Hides classify table identifier managed by vpp.";
+ }
+
+ uses classify-table-base-attributes;
+ uses classify-table-operational-attributes;
}
}