|
...
|
...
|
@@ -1453,9 +1453,13 @@ function delete_probe {
|
|
1453
|
1453
|
function setup_neutron_debug {
|
|
1454
|
1454
|
if [[ "$Q_USE_DEBUG_COMMAND" == "True" ]]; then
|
|
1455
|
1455
|
public_net_id=`_get_net_id $PUBLIC_NETWORK_NAME`
|
|
1456
|
|
- neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id
|
|
|
1456
|
+ if [[ -n $public_net_id ]]; then
|
|
|
1457
|
+ neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id
|
|
|
1458
|
+ fi
|
|
1457
|
1459
|
private_net_id=`_get_net_id $PRIVATE_NETWORK_NAME`
|
|
1458
|
|
- neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id
|
|
|
1460
|
+ if [[ -n $private_net_id ]]; then
|
|
|
1461
|
+ neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id
|
|
|
1462
|
+ fi
|
|
1459
|
1463
|
fi
|
|
1460
|
1464
|
}
|
|
1461
|
1465
|
|