Revision bc37fa88
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
683 | 683 |
def _create_network(network, backend): |
684 | 684 |
"""Create a network.""" |
685 | 685 |
|
686 |
network_type = network.public and 'public' or 'private' |
|
687 |
|
|
688 | 686 |
tags = network.backend_tag |
689 | 687 |
if network.dhcp: |
690 | 688 |
tags.append('nfdhcpd') |
... | ... | |
715 | 713 |
network6=network.subnet6, |
716 | 714 |
gateway=network.gateway, |
717 | 715 |
gateway6=network.gateway6, |
718 |
network_type=network_type, |
|
719 | 716 |
mac_prefix=mac_prefix, |
720 | 717 |
conflicts_check=conflicts_check, |
721 | 718 |
tags=tags) |
b/snf-cyclades-app/synnefo/logic/rapi.py | ||
---|---|---|
1412 | 1412 |
None, None) |
1413 | 1413 |
|
1414 | 1414 |
def CreateNetwork(self, network_name, network, gateway=None, network6=None, |
1415 |
gateway6=None, mac_prefix=None, network_type=None,
|
|
1415 |
gateway6=None, mac_prefix=None, |
|
1416 | 1416 |
add_reserved_ips=None, tags=[], |
1417 | 1417 |
conflicts_check=False, dry_run=False): |
1418 | 1418 |
"""Creates a new network. |
... | ... | |
1436 | 1436 |
"gateway6": gateway6, |
1437 | 1437 |
"network6": network6, |
1438 | 1438 |
"mac_prefix": mac_prefix, |
1439 |
"network_type": network_type, |
|
1440 | 1439 |
"add_reserved_ips": add_reserved_ips, |
1441 | 1440 |
"conflicts_check": conflicts_check, |
1442 | 1441 |
"tags": tags, |
Also available in: Unified diff