Revision 2f998a37
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 |
|
32 | 33 |
MAC_POOL_LIMIT = 65536 |
33 | 34 |
|
34 | 35 |
ENABLED_NETWORKS = ['PUBLIC_ROUTED', |
... | ... | |
64 | 65 |
# ------------------------------------------ |
65 | 66 |
# Each network of this type is mapped to an isolated physical VLAN, which must |
66 | 67 |
# be preconfigured in the backend. Each vlan corresponds to a bridge named |
67 |
# $PRIVATE_PHYSICAL_VLAN_PREFIX{1..$PRIVATE_PHYSICAL_VLAN_MAX_NUMBER} (e.g. prv5)
|
|
68 |
# $PRIVATE_PHYSICAL_VLAN_PREFIX{0..$PRIVATE_PHYSICAL_VLAN_MAX_NUMBER} (e.g. prv5)
|
|
68 | 69 |
# VirtualMachine's taps are eventually bridged to the corresponding bridge. |
69 | 70 |
PRIVATE_PHYSICAL_VLAN_BRIDGE_PREFIX = 'prv' |
70 | 71 |
# 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 = 1
|
|
718 |
index = 0
|
|
719 | 719 |
|
720 | 720 |
if index <= cls.max_index: |
721 | 721 |
return cls.objects.create(index=index, |
Also available in: Unified diff