argv0 = sys.argv[0]
def printEdge(tableName, type, baseType, label):
argv0 = sys.argv[0]
def printEdge(tableName, type, baseType, label):
', '.join(['%s=%s' % (k,v) for k,v in options.items()]))
', '.join(['%s=%s' % (k,v) for k,v in options.items()]))
schema = ovs.db.schema.DbSchema.from_json(ovs.json.from_file(schemaFile))
print "digraph %s {" % schema.name
schema = ovs.db.schema.DbSchema.from_json(ovs.json.from_file(schemaFile))
print "digraph %s {" % schema.name
-h, --help display this help message
-V, --version display version information\
""" % {'argv0': argv0}
-h, --help display this help message
-V, --version display version information\
""" % {'argv0': argv0}
try:
try:
options, args = getopt.gnu_getopt(sys.argv[1:], 'hV',
try:
try:
options, args = getopt.gnu_getopt(sys.argv[1:], 'hV',
except getopt.GetoptError, geo:
sys.stderr.write("%s: %s\n" % (argv0, geo.msg))
sys.exit(1)
except getopt.GetoptError, geo:
sys.stderr.write("%s: %s\n" % (argv0, geo.msg))
sys.exit(1)
usage()
elif key in ['-V', '--version']:
print "ovsdb-dot (Open vSwitch) @VERSION@"
usage()
elif key in ['-V', '--version']:
print "ovsdb-dot (Open vSwitch) @VERSION@"
except ovs.db.error.Error, e:
sys.stderr.write("%s: %s\n" % (argv0, e.msg))
except ovs.db.error.Error, e:
sys.stderr.write("%s: %s\n" % (argv0, e.msg))