Commit 7e5beec8 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Christos Stavrakakis
Browse files

Fix modifynetwork management command

check available network status options based on Network.OPER_STATES
parent 26a93ba4
......@@ -98,7 +98,7 @@ class Command(BaseCommand):
state = options.get('state')
if state is not None:
allowed = [x[0] for x in Network.NETWORK_STATES]
allowed = [x[0] for x in Network.OPER_STATES]
if state not in allowed:
msg = "Invalid state, must be one of %s" % ', '.join(allowed)
raise CommandError(msg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment