Add showOvsdbMdsal.py tool
authorFlavio Fernandes <ffernand@redhat.com>
Fri, 10 Jul 2015 13:48:35 +0000 (09:48 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Mon, 13 Jul 2015 19:24:21 +0000 (15:24 -0400)
commit0b46df2b4cb65fc9eefbcd9df4684b6043d0ec96
tree1b5d6948d7f20833a738075addafdb665963b084
parent4ea43d2800d95f7d2ac62bc54830883e52faae32
Add showOvsdbMdsal.py tool

This tool can provide useful info in regards to ovsdb's mdsal structures.
It looks at the operational or config trees in mdsal, depending on the
parameter '--config':

Patch set 2: code review

$ ./showOvsdbMdsal.py -h
Usage: showOvsdbMdsal.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -d, --debug           Verbosity. Can be provided multiple times for more
                        debug.
  -n, --noalias         Do not map nodeId of bridges to an alias
  -i ODLIP, --ip=ODLIP  opendaylights ip address
  -t ODLPORT, --port=ODLPORT
                        opendaylights listening tcp port on restconf
                        northbound
  -u ODLUSERNAME, --user=ODLUSERNAME
                        opendaylight restconf username
  -p ODLPASSWORD, --password=ODLPASSWORD
                        opendaylight restconf password
  -c, --config          parse mdsal restconf config tree instead of
                        operational tree
  -f, --hide-flows      hide flows

Examples of what to expect:

  https://gist.githubusercontent.com/anonymous/3a952cec49ef92461752/raw/7abfedcd7790acc5b5cef07a2c08da0405f303c6/gistify465337.txt

Change-Id: Ica94e00a14d17682acdedad3b495833de330afc4
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
resources/commons/README
resources/commons/showOvsdbMdsal.py [new file with mode: 0755]