[PATCH] openbsc[master]: bsc_control.py: remove unused -i option

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Thu Nov 17 16:32:40 UTC 2016


Review at  https://gerrit.osmocom.org/1270

bsc_control.py: remove unused -i option

Change-Id: I10cc7c069354cced2bba84fe67c69c28b8596ded
---
M openbsc/contrib/bsc_control.py
1 file changed, 0 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/70/1270/1

diff --git a/openbsc/contrib/bsc_control.py b/openbsc/contrib/bsc_control.py
index 0987e65..3c71248 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
@@ -39,8 +38,6 @@
         return v
 
 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")
@@ -50,8 +47,6 @@
                           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",

-- 
To view, visit https://gerrit.osmocom.org/1270
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10cc7c069354cced2bba84fe67c69c28b8596ded
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list