From 3efcc890568f1b217208248bc8d9caa198190879 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 23 May 2013 11:26:24 +0200 Subject: [PATCH] do not create interfaces for managed server pacs --- hsarback/src/de/hsadmin/mods/pac/Pac.java | 5 +++++ hsarback/src/de/hsadmin/mods/pac/interfaces.vm | 2 ++ 2 files changed, 7 insertions(+) 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