diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java index 5cfeb5e..3daa6a0 100644 --- a/hsarback/src/de/hsadmin/mods/pac/Pac.java +++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java @@ -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); + } } diff --git a/hsarback/src/de/hsadmin/mods/pac/interfaces.vm b/hsarback/src/de/hsadmin/mods/pac/interfaces.vm index 4c995cf..6c2b0c0 100644 --- a/hsarback/src/de/hsadmin/mods/pac/interfaces.vm +++ b/hsarback/src/de/hsadmin/mods/pac/interfaces.vm @@ -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 \ No newline at end of file