do not create interfaces for managed server pacs
This commit is contained in:
parent
266756b268
commit
3efcc89056
@ -292,4 +292,9 @@ public class Pac extends AbstractEntity implements Serializable {
|
||||
String basepacName = getBasepac().getName();
|
||||
return PAC_DW.equals(basepacName) || PAC_WEB.equals(basepacName);
|
||||
}
|
||||
|
||||
public boolean isManagedServer() {
|
||||
String basepacName = getBasepac().getName();
|
||||
return PAC_SRV.equals(basepacName);
|
||||
}
|
||||
}
|
||||
|
@ -13,10 +13,12 @@ iface eth0 inet static
|
||||
gateway ${hive.defaultGateway}
|
||||
|
||||
#foreach( $pac in ${hive.pacs} )
|
||||
#if( !${pac.managedServer} )
|
||||
iface eth0:${pac.name} inet static
|
||||
address ${pac.curINetAddr.inetAddr}
|
||||
netmask 255.255.255.0
|
||||
|
||||
#end
|
||||
#end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user