Skip to content

Commit 7f8cf5a

Browse files
author
frank
committed
fix copying template
Conflicts: console-proxy/scripts/ipfirewall.sh
1 parent 167b036 commit 7f8cf5a

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎console-proxy/scripts/ipfirewall.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ config_htaccess() {
3131
}
3232

3333
ips(){
34-
public_ip=`ip addr show eth2|grep "inet "|sed "s/^ *//"|cut -d "/" -f 1|cut -d " " -f 2`
35-
ip route add $1 via $public_ip
3634
echo "allow from $1" >> $HTACCESS
3735
result=$?
3836
return $result

‎server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,6 @@ public boolean generateVMSetupCommand(Long ssAHostId) {
377377
Nic privateNic = nics.get(0);
378378
String privateCidr = NetUtils.ipAndNetMaskToCidr(privateNic.getIp4Address(), privateNic.getNetmask());
379379
String publicCidr = NetUtils.ipAndNetMaskToCidr(secStorageVm.getPublicIpAddress(), secStorageVm.getPublicNetmask());
380-
if (NetUtils.isNetworkAWithinNetworkB(privateCidr, publicCidr) || NetUtils.isNetworkAWithinNetworkB(publicCidr, privateCidr)) {
381-
s_logger.info("private and public interface overlaps, add a default route through private interface. privateCidr: " + privateCidr + ", publicCidr: " + publicCidr);
382-
allowedCidrs.add(NetUtils.ALL_CIDRS);
383-
}
384380
setupCmd.setAllowedInternalSites(allowedCidrs.toArray(new String[allowedCidrs.size()]));
385381
}
386382
String copyPasswd = _configDao.getValue("secstorage.copy.password");

0 commit comments

Comments
 (0)