Revision 3f68fa52
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
550 | 550 |
def _create_network(network, backend): |
551 | 551 |
"""Create a network.""" |
552 | 552 |
|
553 |
network_type = network.public and 'public' or 'private' |
|
554 |
|
|
555 | 553 |
tags = network.backend_tag |
556 | 554 |
if network.dhcp: |
557 | 555 |
tags.append('nfdhcpd') |
... | ... | |
574 | 572 |
network6=network.subnet6, |
575 | 573 |
gateway=network.gateway, |
576 | 574 |
gateway6=network.gateway6, |
577 |
network_type=network_type, |
|
578 | 575 |
mac_prefix=mac_prefix, |
579 | 576 |
conflicts_check=conflicts_check, |
580 | 577 |
tags=tags) |
b/snf-cyclades-app/synnefo/logic/rapi.py | ||
---|---|---|
1661 | 1661 |
None, None) |
1662 | 1662 |
|
1663 | 1663 |
def CreateNetwork(self, network_name, network, gateway=None, network6=None, |
1664 |
gateway6=None, mac_prefix=None, network_type=None,
|
|
1664 |
gateway6=None, mac_prefix=None, |
|
1665 | 1665 |
add_reserved_ips=None, tags=[], |
1666 | 1666 |
conflicts_check=False, dry_run=False): |
1667 | 1667 |
"""Creates a new network. |
... | ... | |
1685 | 1685 |
"gateway6": gateway6, |
1686 | 1686 |
"network6": network6, |
1687 | 1687 |
"mac_prefix": mac_prefix, |
1688 |
"network_type": network_type, |
|
1689 | 1688 |
"add_reserved_ips": add_reserved_ips, |
1690 | 1689 |
"conflicts_check": conflicts_check, |
1691 | 1690 |
"tags": tags, |
Also available in: Unified diff