mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
bug 11903: create local link when host is connected
status 11903: resolved fixed
This commit is contained in:
parent
245cd32281
commit
548839e3bb
@ -2537,6 +2537,8 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
// snapshots dir fails, let Ready command
|
||||
// succeed.
|
||||
callHostPlugin(conn, "vmopsSnapshot", "unmountSnapshotsDir", "dcId", dcId.toString());
|
||||
|
||||
setupLinkLocalNetwork(conn);
|
||||
|
||||
_localGateway = callHostPlugin(conn, "vmops", "getgateway", "mgmtIP", _host.ip);
|
||||
if (_localGateway == null || _localGateway.isEmpty()) {
|
||||
|
||||
@ -27,20 +27,6 @@ do
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
# propagates local link network
|
||||
local_networkname="cloud_link_local_network"
|
||||
local_network=$(xe network-list name-label=$local_networkname --minimal)
|
||||
for dom0 in $(xe vm-list is-control-domain=true | grep ^uuid | awk '{print $NF}')
|
||||
do
|
||||
local_vif=$(xe vif-list vm-uuid=$dom0 network-name-label=$local_networkname | grep ^uuid | awk '{print $NF}')
|
||||
if [ -z $local_vif ]; then
|
||||
local_vif=$(xe vif-create network-uuid=$local_network vm-uuid=$dom0 device=0 mac=fe:ff:ff:ff:ff:ff)
|
||||
xe vif-param-set uuid=$local_vif other-config:nameLabel=link_local_network_vif
|
||||
xe vif-plug uuid=$local_vif
|
||||
fi
|
||||
done
|
||||
|
||||
# eject all CD
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user