Revision b7d38981 snf-cyclades-app/synnefo/app_settings/default/api.py

b/snf-cyclades-app/synnefo/app_settings/default/api.py
24 24
# Maximum allowed network size for private networks.
25 25
MAX_CIDR_BLOCK = 22
26 26

  
27
# The first mac prefix to use
28
MAC_POOL_BASE = 'aa:00:0'
29
MAC_POOL_LIMIT = 65536
30

  
31
ENABLED_NETWORKS = ['PUBLIC_ROUTED',
32
                    'PRIVATE_MAC_FILTERED',
33
                    'PRIVATE_PHYSICAL_VLAN']
34
                    # CUSTOM_ROUTED,
35
                    # CUSTOM_BRIDGED,
36

  
37
# Settings for PUBLIC_ROUTED network:
38
# -----------------------------------
39
# In this case VMCs act as routers that forward the traffic to/from VMs, based
40
# on the defined routing table($PUBLIC_ROUTED_ROUTING_TABLE) and ip rules, that
41
# exist in every node, implenting an IP-less routed and proxy-arp setup.
42
# (This value is also hardcoded in fixture db/fixtures/initial_data.json)
43
PUBLIC_ROUTED_ROUTING_TABLE = 'snf_public'
44
PUBLIC_ROUTED_TAGS = ['ip-less-routed']
27
# Default settings used by network flavors
28
DEFAULT_MAC_PREFIX = 'aa:00:0'
29
DEFAULT_BRIDGE = 'br0'
45 30

  
46 31
# Boolean value indicating whether synnefo would hold a Pool and allocate IP
47 32
# addresses. If this setting is set to False, IP pool management will be
......
49 34
# you must run network reconciliation after turning it to True.
50 35
PUBLIC_USE_POOL = True
51 36

  
52
# Settings for PRIVATE_MAC_FILTERED network:
37
# Network flavors that users are allowed to create through API requests
38
API_ENABLED_NETWORK_FLAVORS = ['MAC_FILTERED']
39

  
40
# Settings for IP_LESS_ROUTED network:
41
# -----------------------------------
42
# In this case VMCs act as routers that forward the traffic to/from VMs, based
43
# on the defined routing table($DEFAULT_ROUTING_TABLE) and ip rules, that
44
# exist in every node, implenting an IP-less routed and proxy-arp setup.
45
DEFAULT_ROUTING_TABLE = 'snf_public'
46

  
47
# Settings for MAC_FILTERED network:
53 48
# ------------------------------------------
54 49
# All networks of this type are bridged to the same bridge. Isolation between
55 50
# networks is achieved by assigning a unique MAC-prefix to each network and
56 51
# filtering packets via ebtables.
57
PRIVATE_MAC_FILTERED_BRIDGE = 'br0'
58
PRIVATE_MAC_FILTERED_TAGS = ['private-filtered']
52
DEFAULT_MAC_FILTERED_BRIDGE = 'prv0'
59 53

  
60
# Settings for PRIVATE_PHSICAL_VLAN network:
61
# ------------------------------------------
62
# Each network of this type is mapped to an isolated physical VLAN, which must
63
# be preconfigured in the backend. Each vlan corresponds to a bridge named
64
# $PRIVATE_PHYSICAL_VLAN_PREFIX{1..$PRIVATE_PHYSICAL_VLAN_MAX_NUMBER} (e.g. prv5)
65
# VirtualMachine's taps are eventually bridged to the corresponding bridge.
66
PRIVATE_PHYSICAL_VLAN_BRIDGE_PREFIX = 'prv'
67
# The max limit of physical vlan pool
68
PRIVATE_PHYSICAL_VLAN_MAX_NUMBER = 100
69
PRIVATE_PHYSICAL_VLAN_TAGS = ['physical-vlan']
70

  
71

  
72
# Settings for CUSTOM_ROUTED:
73
# ---------------------------
74
# Same as PUBLIC_ROUTED but with custom values
75
CUSTOM_ROUTED_ROUTING_TABLE = 'custom_routing_table'
76
CUSTOM_ROUTED_TAGS = []
77

  
78
# Settings for CUSTOM_BRIDGED:
79
# ---------------------------
80
# Same as PRIVATE_BRIDGED but with custom values
81
CUSTOM_BRIDGED_BRIDGE = 'custom_bridge'
82
CUSTOM_BRIDGED_TAGS = []
83 54

  
84 55
# Firewalling
85 56
GANETI_FIREWALL_ENABLED_TAG = 'synnefo:network:0:protected'

Also available in: Unified diff