From 758f3cc154d28df97b3995344e0c67190c50a035 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Tue, 19 Jul 2016 13:18:38 +0200 Subject: HONEYCOMB-49: fix outstanding issues found in review Change-Id: Ic3314c8ddf75bda89f5170a503cf589f2ae743ab Signed-off-by: Marek Gradzki --- v3po/api/src/main/yang/vpp-classifier.yang | 43 +++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 10 deletions(-) (limited to 'v3po/api') 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; } } -- cgit 1.2.3-korg