summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main
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
commit758f3cc154d28df97b3995344e0c67190c50a035 (patch)
tree6daa559ab7dd505e02c1e22de250c5ef7cd6d97c /v3po/api/src/main
parentb7f0bf24a050b108717ac3a95609b2136b6cf943 (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')
-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;
}
}