diff options
-rwxr-xr-x | ofproto/ipfix-gen-entities | 1 | ||||
-rwxr-xr-x | utilities/ovs-pcap.in | 3 | ||||
-rwxr-xr-x | utilities/ovs-tcpdump.in | 1 | ||||
-rwxr-xr-x | vtep/ovs-vtep | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities index a603cd1d1..0be719967 100755 --- a/ofproto/ipfix-gen-entities +++ b/ofproto/ipfix-gen-entities @@ -112,6 +112,7 @@ The following options are also available: """ % {'name': name}) sys.exit(0) + if __name__ == '__main__': try: options, args = getopt.gnu_getopt(sys.argv[1:], 'hV', diff --git a/utilities/ovs-pcap.in b/utilities/ovs-pcap.in index 2e9197d15..c43acb52e 100755 --- a/utilities/ovs-pcap.in +++ b/utilities/ovs-pcap.in @@ -55,6 +55,8 @@ class PcapReader(object): if len(packet) != incl_len: raise PcapException("end of file reading pcap packet data") return packet + + argv0 = sys.argv[0] @@ -70,6 +72,7 @@ The following options are also available: """ % {'argv0': argv0}) sys.exit(0) + if __name__ == "__main__": try: try: diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in index 538b3b405..a6e4adadb 100755 --- a/utilities/ovs-tcpdump.in +++ b/utilities/ovs-tcpdump.in @@ -67,6 +67,7 @@ def _install_tap_linux(tap_name): *(['ip', 'link', 'set', 'dev', str(tap_name), 'up'])) pipe.wait() + _make_taps['linux'] = _install_tap_linux _make_taps['linux2'] = _install_tap_linux diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep index b32a82a90..9a5aa3d68 100755 --- a/vtep/ovs-vtep +++ b/vtep/ovs-vtep @@ -752,6 +752,7 @@ def main(): unixctl.close() + if __name__ == '__main__': try: main() |