X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb-idlc.in;h=d7115412bee198f69095e18403df3a8442cd37f1;hb=4cb3fde7c9224ca4f939852c5e7987fc5112d680;hp=4e402888d17c06539a761b305cc39b359dd1dc26;hpb=8cdf0349740c3e1a73af9aa6209bb22be952cd37;p=openvswitch diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in index 4e402888..d7115412 100755 --- a/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in @@ -548,20 +548,6 @@ void print " %s_columns_init();" % structName print "}" -def print_python_module(schema_file): - schema = ovs.db.schema.DbSchema.from_json(ovs.json.from_file(schema_file)) - print """\ -# Generated automatically -- do not modify! -*- buffer-read-only: t -*- - -import ovs.db.schema -import ovs.json - -__schema_json = \"\"\" -%s -\"\"\" - -schema = ovs.db.schema.DbSchema.from_json(ovs.json.from_string(__schema_json)) -""" % ovs.json.to_string(schema.to_json(), pretty=True) def ovsdb_escape(string): def escape(match): @@ -593,7 +579,6 @@ The following commands are supported: annotate SCHEMA ANNOTATIONS print SCHEMA combined with ANNOTATIONS c-idl-header IDL print C header file for IDL c-idl-source IDL print C source file for IDL implementation - python-module IDL print Python module for IDL nroff IDL print schema documentation in nroff format The following options are also available: @@ -632,8 +617,7 @@ if __name__ == "__main__": commands = {"annotate": (annotateSchema, 2), "c-idl-header": (printCIDLHeader, 1), - "c-idl-source": (printCIDLSource, 1), - "python-module": (print_python_module, 1)} + "c-idl-source": (printCIDLSource, 1)} if not args[0] in commands: sys.stderr.write("%s: unknown command \"%s\" "