diff options
author | Max <msuraev@sysmocom.de> | 2016-12-12 16:59:28 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-12-19 08:57:43 +0000 |
commit | 0c32685898604ca5c6546882deb642a17ddce937 (patch) | |
tree | 0dab19d38bca0c03f48509c98588674b423c4f35 /openbsc/contrib | |
parent | ea619f17048ed6b3e7cf730901e7bc27c1f3f7ed (diff) |
bsc_control.py: remove unused -i option
This option only served to demonstrate possibility of manually selecting
<id> field in CTRL protocol. Since the transition to generic ipa module
this is no longer exposed so the option became a no-op. Correspondingly
there's no need to explicitly initialize the RNG - the Ctrl class
handles random <id> generation internally.
Change-Id: I10cc7c069354cced2bba84fe67c69c28b8596ded
Diffstat (limited to 'openbsc/contrib')
-rwxr-xr-x | openbsc/contrib/bsc_control.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/openbsc/contrib/bsc_control.py b/openbsc/contrib/bsc_control.py index cd2ba6dee..66a41eb98 100755 --- a/openbsc/contrib/bsc_control.py +++ b/openbsc/contrib/bsc_control.py @@ -1,7 +1,6 @@ #!/usr/bin/python # -*- mode: python-mode; py-indent-tabs-mode: nil -*- -import random from optparse import OptionParser from ipa import Ctrl import socket @@ -44,8 +43,6 @@ def _leftovers(sck): return False if __name__ == '__main__': - random.seed() - parser = OptionParser("Usage: %prog [options] var [value]") parser.add_option("-d", "--host", dest="host", help="connect to HOST", metavar="HOST") @@ -55,8 +52,6 @@ if __name__ == '__main__': dest="cmd_get", help="perform GET operation") parser.add_option("-s", "--set", action="store_true", dest="cmd_set", help="perform SET operation") - parser.add_option("-i", "--id", dest="op_id", default=random.randint(1, sys.maxint), - help="set id manually", metavar="ID") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", help="be verbose", default=False) parser.add_option("-m", "--monitor", action="store_true", |