Flow decomposer support for Tech Profile Reference in metadata instead of using Flow Table ID as reference in Table 1.
Also in this patch:
- Update flow count field of meter stats
- ONU root field was True and because of this flow decomposer was not working properly - it is fixed (now onu root field is false) - related to VOL-1354
- Meter & write metadata support is added to vcli
- No-action (drop) flow support is added.
- Removed broken wildcard inport support and in-band control support
- Meter functions (meter stats reply, meter modify etc.) are fixed
- Metadata information passed on to the OLT and ONU Adapters.
- Meter Reference in all Flow Tables passed on to the OLT and ONU Adapters.
- Fixed unit tests and added more unit tests
- Fixed ponsim (partially) to deal with changes to flow decomposer
Change-Id: Id4b16fc05a6740a3f521b2cc4f6fdbff88da4fa5
diff --git a/cli/logical_device.py b/cli/logical_device.py
index 0545c69..9c53519 100644
--- a/cli/logical_device.py
+++ b/cli/logical_device.py
@@ -23,7 +23,7 @@
from cli.table import print_pb_as_table, print_pb_list_as_table
from cli.utils import pb2dict
-from cli.utils import print_flows, print_groups
+from cli.utils import print_flows, print_groups, print_meters
from voltha.protos import third_party
from google.protobuf.empty_pb2 import Empty
@@ -98,6 +98,16 @@
groups=logical_device['flow_groups']['items']
)
+ def do_meters(self, _):
+ """Show flow meter table for logical device"""
+ logical_device = pb2dict(self.get_logical_device(-1))
+ print_meters(
+ 'Logical Device',
+ self.logical_device_id,
+ type='n/a',
+ meters=logical_device['meters']['items']
+ )
+
def do_devices(self, line):
"""List devices that belong to this logical device"""
logical_device = self.get_logical_device()