Revision 23f46a1b snf-deploy/fabfile.py

b/snf-deploy/fabfile.py
1280 1280
@roles("cyclades")
1281 1281
def add_network():
1282 1282
    debug(env.host, " * Adding public network in cyclades...")
1283
    backend_id = get_backend_id(env.env.cluster.fqdn)
1284 1283
    cmd = """
1285 1284
    snf-manage network-create --subnet={0} --gateway={1} --public \
1286 1285
        --dhcp=True --flavor={2} --mode=bridged --link={3} --name=Internet \
1287
        --backend-id={4}
1288 1286
    """.format(env.env.synnefo_public_network_subnet,
1289 1287
               env.env.synnefo_public_network_gateway,
1290 1288
               env.env.synnefo_public_network_type,
1291
               env.env.common_bridge, backend_id)
1289
               env.env.common_bridge)
1292 1290
    try_run(cmd)
1291
    if env.env.testing_vm:
1292
        cmd = ("snf-manage network-create --subnet6=babe::/64"
1293
               " --gateway6=babe::1 --public --flavor={0} --mode=bridged"
1294
               " --link={1} --name=IPv6PublicNetwork"
1295
               .format(env.env.synnefo_public_network_type,
1296
                       env.env.common_bridge))
1297
        try_run(cmd)
1293 1298

  
1294 1299

  
1295 1300
@roles("cyclades")

Also available in: Unified diff