diff options
-rwxr-xr-xvland-admin (renamed from admin.py)4
6 files changed, 10 insertions, 8 deletions
diff --git a/Changelog b/Changelog
index f147d6f..90efbc2 100644
--- a/Changelog
+++ b/Changelog
@@ -1,6 +1,8 @@
vland 0.7
* Added new driver to support the Mellanox SN2100 switch, using MLNX-OS
+ * Renamed the admin program from "admin.py" to "vland-admin" to make
+ packaging easier
* Minor changes to the database code:
+ Automatic schema updates at vland startup
+ Add extra lock_reason field in the port table, and code to match
diff --git a/README b/README
index 76f5f13..e7bb828 100644
--- a/README
+++ b/README
@@ -84,9 +84,9 @@ permissions in the database for that user.
The core VLANd code is simple to configure - see vland.cfg for an
example config file. Once your copy of VLANd is running, use the
-administration utility admin.py to control what it does. For now, this
-is single-threaded and has *no* security. This *will* change in the
-future, but for very early development has not been a priority.
+administration utility "vland-admin" to control what it does. For now,
+this is single-threaded and has *no* security. This *will* change in
+the future, but for very early development has not been a priority.
The visualisation interface has very few configuration options as
yet - again, see the default vland.cfg.
diff --git a/test/test-common b/test/test-common
index ddc7986..cdc50d3 100755
--- a/test/test-common
+++ b/test/test-common
@@ -70,7 +70,7 @@ vvlog () {
# Run a vland admin command, and optionally log both the full text of
# the command and its output
run_admin_command () {
- ADMIN="python $TOPDIR/admin.py"
+ ADMIN="python $TOPDIR/vland-admin"
vlog "Running \"$ADMIN $@\""
diff --git a/admin.py b/vland-admin
index b7ae1b7..96a7cfc 100755
--- a/admin.py
+++ b/vland-admin
@@ -31,7 +31,7 @@ from errors import InputError, SocketError, NotFoundError, Error
from config.config import VlanConfig
from ipc.ipc import VlanIpc
-prog = "admin"
+prog = "vland-admin"
version = "0.7"
banner = "Linaro VLANd admin interface, version %s" % version
exitcode = Error.OK
@@ -79,7 +79,7 @@ def dump_trunk(trunk):
def call_vland(msgtype, msg):
ipc = VlanIpc()
ipc.client_connect('localhost', config.vland.port)
- msg['client_name'] = 'admin.py'
+ msg['client_name'] = 'vland-admin'
msg['type'] = msgtype
ret = ipc.client_recv_and_close()
diff --git a/vland.py b/vland.py
index d5ee2ff..633e10f 100755
--- a/vland.py
+++ b/vland.py
@@ -101,7 +101,7 @@ if len(switches) != len(state.config.switches):
print 'You have configured access details for %d switch(es), ' % len(state.config.switches)
print 'but have %d switch(es) registered in your database.' % len(switches)
print 'You must fix this difference for VLANd to work sensibly.'
- print 'HINT: Running admin.py auto_import_switch --name <switch_name>'
+ print 'HINT: Running vland-admin auto_import_switch --name <switch_name>'
print 'for each of your switches may help!'
diff --git a/vland.service b/vland.service
index 7609743..83397c9 100644
--- a/vland.service
+++ b/vland.service
@@ -7,7 +7,7 @@ Requires=postgresql.service
-ExecStop=/home/vland/vland/admin.py shutdown
+ExecStop=/home/vland/vland/vland-admin shutdown