Adding OMCI packet parsing for openonu-go
Change-Id: Id81a19f060226f22d8301164c9f51283806b87a5
diff --git a/conf.py b/conf.py
index 175d6e0..b40278b 100644
--- a/conf.py
+++ b/conf.py
@@ -282,7 +282,8 @@
r'https://github.com/opencord/voltctl/blob/master/LICENSE',
r'https://github.com/ciena/kind-voltha#voltha-up-configuration-options',
r'https://www.sphinx-doc.org',
- r'https://github.com/opencord/bbsim/blob/master/docs/source/DMI_Server_README'
+ r'https://github.com/opencord/bbsim/blob/master/docs/source/DMI_Server_README',
+ r'https://github.com/opencord/kind-voltha/blob/master/README'
]
# -- Configure recommonmark to use AutoStructify -----------------------------
diff --git a/overview/troubleshooting.rst b/overview/troubleshooting.rst
index 9b2e7d6..f58e63c 100644
--- a/overview/troubleshooting.rst
+++ b/overview/troubleshooting.rst
@@ -70,19 +70,20 @@
.. code:: bash
- cat openonu.logs | grep -E "receive_message|_send_next" | grep msg > omci.dump
+ cat openonu.logs | grep -E "TxOmciMessage|RxOmciMessage" | grep msg > packets.trace
To capture the OMCI packets for a particular ONU:
.. code:: bash
- cat openonu.logs | grep -E "receive_message|_send_next" | grep msg | grep [deviceId] > omci.dump
+ cat openonu.logs | grep -E "TxOmciMessage|RxOmciMessage" | grep msg | grep [deviceId] > packets.trace
Once you have the ``omci.dump`` file you need to prepare it to be imported in wireshark with this command:
.. code:: bash
- sed -n "s/.*[omci_msg|msg]: b'\(.*\)',.*$/\1/p" omci.dump | sed -e 's/.\{2\}/& /g' | sed -e 's/^/000000 /' > omci.hex
+ awk -F"OmciMessage" '/OmciMessage/{print $2}' packets.trace | cut -f3 -d'"' > rawdump
+ cat rawdump | sed -e 's/.\{2\}/& /g' | sed -e 's/^/000000 /' > omci.hex
And then in wireshark: