Revision 44e2c577 snf-cyclades-app/synnefo/logic/utils.py

b/snf-cyclades-app/synnefo/logic/utils.py
61 61
    """
62 62
    if not str(name).startswith(settings.BACKEND_PREFIX_ID):
63 63
        raise Network.InvalidBackendIdError(str(name))
64
    ns = str(name).replace(settings.BACKEND_PREFIX_ID, "", 1)
64
    ns = str(name).replace(settings.BACKEND_PREFIX_ID + 'net-', "", 1)
65 65
    if not ns.isdigit():
66 66
        raise Network.InvalidBackendIdError(str(name))
67 67

  

Also available in: Unified diff