Add showOvsdbMdsal.py tool 83/23983/3
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)
commite70bd1c97dec07da71569dd2635515fff411654f
treeccade7133ddeb32eeb69916d947a3662cc94138c
parentc4579d2b04373fd4167919701875851dc9123a37
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]