Revision 8731a246

b/snf-cyclades-app/synnefo/app_settings/default/api.py
29 29

  
30 30
# The first mac prefix to use
31 31
MAC_POOL_BASE = 'aa:00:0'
32
# Max number of mac prefixes to use
33 32
MAC_POOL_LIMIT = 65536
34 33

  
35 34
ENABLED_NETWORKS = ['PUBLIC_ROUTED',
......
65 64
# ------------------------------------------
66 65
# Each network of this type is mapped to an isolated physical VLAN, which must
67 66
# be preconfigured in the backend. Each vlan corresponds to a bridge named
68
# $PRIVATE_PHYSICAL_VLAN_PREFIX{0..$PRIVATE_PHYSICAL_VLAN_MAX_NUMBER} (e.g. prv5)
67
# $PRIVATE_PHYSICAL_VLAN_PREFIX{1..$PRIVATE_PHYSICAL_VLAN_MAX_NUMBER} (e.g. prv5)
69 68
# VirtualMachine's taps are eventually bridged to the corresponding bridge.
70 69
PRIVATE_PHYSICAL_VLAN_BRIDGE_PREFIX = 'prv'
71 70
# The max limit of physical vlan pool
b/snf-cyclades-app/synnefo/db/models.py
715 715
            last = cls.objects.order_by('-index')[0]
716 716
            index = last.index + 1
717 717
        except IndexError:
718
            index = 0
718
            index = 1
719 719

  
720 720
        if index <= cls.max_index:
721 721
            return cls.objects.create(index=index,

Also available in: Unified diff