From 0c32685898604ca5c6546882deb642a17ddce937 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 12 Dec 2016 16:59:28 +0100 Subject: bsc_control.py: remove unused -i option This option only served to demonstrate possibility of manually selecting 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 generation internally. Change-Id: I10cc7c069354cced2bba84fe67c69c28b8596ded --- openbsc/contrib/bsc_control.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'openbsc/contrib') 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", -- cgit v1.2.3