SEBA-319 Fix downstream ethernet extended PM
Change-Id: I76c7c5197f43b794a34bf30bca8a3792c35438d1
diff --git a/voltha/extensions/omci/tasks/omci_create_pm_task.py b/voltha/extensions/omci/tasks/omci_create_pm_task.py
index 4743b03..355e26a 100644
--- a/voltha/extensions/omci/tasks/omci_create_pm_task.py
+++ b/voltha/extensions/omci/tasks/omci_create_pm_task.py
@@ -95,8 +95,13 @@
)
)
else:
- # Extended PM interval format
- bitmap = 0 if upstream else 1 << 2
+ # Extended PM interval format. See ITU-T G.988 Section 9.3.32.
+ # Bit 1 - continuous accumulation if set, 15-minute interval if unset
+ # Bit 2 - directionality (0=upstream, 1=downstream)
+ # Bit 3..14 - Reserved
+ # Bit 15 - Use P bits of TCI field to filter
+ # Bit 16 - Use VID bits of TCI field to filter
+ bitmap = 0 if upstream else 1 << 1
data = {'control_block': [
0, # Threshold data 1/2 ID