do not create interfaces for managed server pacs

This commit is contained in:
Peter Hormanns 2013-05-23 11:26:24 +02:00
parent 266756b268
commit 3efcc89056
2 changed files with 7 additions and 0 deletions

View File

@ -292,4 +292,9 @@ public class Pac extends AbstractEntity implements Serializable {
String basepacName = getBasepac().getName(); String basepacName = getBasepac().getName();
return PAC_DW.equals(basepacName) || PAC_WEB.equals(basepacName); return PAC_DW.equals(basepacName) || PAC_WEB.equals(basepacName);
} }
public boolean isManagedServer() {
String basepacName = getBasepac().getName();
return PAC_SRV.equals(basepacName);
}
} }

View File

@ -13,10 +13,12 @@ iface eth0 inet static
gateway ${hive.defaultGateway} gateway ${hive.defaultGateway}
#foreach( $pac in ${hive.pacs} ) #foreach( $pac in ${hive.pacs} )
#if( !${pac.managedServer} )
iface eth0:${pac.name} inet static iface eth0:${pac.name} inet static
address ${pac.curINetAddr.inetAddr} address ${pac.curINetAddr.inetAddr}
netmask 255.255.255.0 netmask 255.255.255.0
#end #end
#end