Fixing issues with idmanager
[vpnservice.git] / idmanager / idmanager-impl / src / test / java / org / opendaylight / idmanager / test / IdManagerTest.java
index 181cc499da154e57ecd99204266f8720239c559d..9833d04c5849b1948aae1b8061bf94b97e275b7c 100644 (file)
@@ -69,15 +69,8 @@ public class IdManagerTest {
     private static final Logger LOG = LoggerFactory.getLogger(IdManagerTest.class);
     private static int BLADE_ID;
     static {
-        String hostName;
         try {
-            hostName = InetAddress.getLocalHost().getHostName();
             BLADE_ID = InetAddresses.coerceToInteger(InetAddress.getLocalHost());
-            if (hostName.indexOf("-") > 0) {
-                BLADE_ID = new Integer(hostName.split("-")[1].toString()).intValue();
-            } else {
-                LOG.error("Host name {} is not matching with the condition!! PL-X is expected", hostName);
-            }
         } catch (Exception e) {
             LOG.error("IdManager - Exception - {}", e.getMessage());
         }