Revision fd33b074

b/snf-cyclades-app/synnefo/api/management/commands/modifynetwork.py
98 98

  
99 99
        state = options.get('state')
100 100
        if state is not None:
101
            allowed = [x[0] for x in Network.NETWORK_STATES]
101
            allowed = [x[0] for x in Network.OPER_STATES]
102 102
            if state not in allowed:
103 103
                msg = "Invalid state, must be one of %s" % ', '.join(allowed)
104 104
                raise CommandError(msg)

Also available in: Unified diff