diff options
author | Lizi <li.zi30@zte.com.cn> | 2018-02-07 01:24:05 +0000 |
---|---|---|
committer | Lizi <li.zi30@zte.com.cn> | 2018-02-07 01:27:27 +0000 |
commit | b595576737ce9cf1b1e1db3589f549ca36bc73f6 (patch) | |
tree | 31898e24500279d12f90c1fddec12b9a21b1f530 | |
parent | a1b75c86ea8a32971a8bef5f75167569b69f5fb6 (diff) |
Fix the bug about register MSB.
When register service to MSB, esr-server still will register to MSB automaticly
Change-Id: I69769906e87e6b8c9658b05de60af45ed2b47e82
Issue-ID: AAI-738
Signed-off-by: Lizi <li.zi30@zte.com.cn>
-rw-r--r-- | esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java | 2 | ||||
-rw-r--r-- | standalone/src/main/assembly/conf/extsys.yml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java b/esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java index db44504..10d8a9f 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java @@ -59,7 +59,7 @@ public class ExtsysApp extends Application<ExtsysAppConfiguration> { environment.jersey().register(new VnfmManager()); environment.jersey().register(new ServiceTest()); initSwaggerConfig(environment, configuration); - if ("true".equals(configuration.getRegistByHand())) { + if ("false".equals(configuration.getRegistByHand())) { String MSB_IP = configuration.getMsbDiscoveryIp(); Integer MSB_Port = Integer.valueOf(configuration.getMsbDiscoveryPort()); MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port); diff --git a/standalone/src/main/assembly/conf/extsys.yml b/standalone/src/main/assembly/conf/extsys.yml index af28302..41faea9 100644 --- a/standalone/src/main/assembly/conf/extsys.yml +++ b/standalone/src/main/assembly/conf/extsys.yml @@ -19,9 +19,9 @@ template: Hello, %s! #defaultName: ${DW_DEFAULT_NAME:-Stranger} # the micro service ip serviceIp: 127.0.0.1 -msbDiscoveryIp: 10.74.148.80 +msbDiscoveryIp: 127.0.0.1 msbDiscoveryPort: 10081 -msbServerAddr: http://10.74.148.80:80 +msbServerAddr: http://127.0.0.1:80 registByHand: true # use the simple server factory if you only want to run on a single port |