Do not initialize contrail plugin component functionality like db sync, network offerring creation when contrail is not installed

This commit is contained in:
sbalineni 2014-02-03 22:46:38 +00:00 committed by Sheng Yang
parent 9b21da65d1
commit cc8bde2421

View File

@ -168,6 +168,9 @@ public class ContrailManagerImpl extends ManagerBase implements ContrailManager
@Override
public boolean start() {
if (_api == null) {
return true;
}
/* Start background task */
_dbSyncTimer = new Timer("DBSyncTimer");
try {
@ -301,8 +304,7 @@ public class ContrailManagerImpl extends ManagerBase implements ContrailManager
String hostname = null;
int port = 0;
if (configFile == null) {
hostname = "localhost";
port = 8082;
return false;
} else {
final Properties configProps = new Properties();
configProps.load(new FileInputStream(configFile));