summaryrefslogtreecommitdiffstats
path: root/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java
diff options
context:
space:
mode:
authorLiZi <li.zi30@zte.com.cn>2018-04-18 03:24:02 -0400
committerLiZi <li.zi30@zte.com.cn>2018-04-18 03:29:09 -0400
commitb4407b084b5f3da5a991c4e4374ab327156057ba (patch)
treea11388b3ce3a41e7e256942831566a009e6e77bf /zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java
parente67348a174fd226c3400522a48e65a0f287eb661 (diff)
Replace the orginal node ip with SERVICE_IPv1.1.02.0.0-ONAPbeijing2.0.0-ONAP
Change-Id: I72eead5325882b63960cdb877477f2ca3d0a6f63 Issue-ID: VFC-884 Signed-off-by: LiZi <li.zi30@zte.com.cn>
Diffstat (limited to 'zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java')
-rw-r--r--zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java
index e444e96..1658c03 100644
--- a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java
+++ b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java
@@ -20,7 +20,7 @@ import org.onap.sfc.entity.ChainParameter;
import org.onap.sfc.entity.MsbRegisterEntity;
import org.onap.sfc.entity.NodeEntity;
import org.onap.sfc.entity.portpair.ServiceFunctionParameter;
-
+import org.onap.sfc.service.ConfigInfo;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
@@ -85,7 +85,7 @@ public class SfcDriverUtil {
entity.setVisualRange("1");
ArrayList<NodeEntity> nodes = new ArrayList<NodeEntity>();
NodeEntity node = new NodeEntity();
- node.setIp(getLocalIp());
+ node.setIp(ConfigInfo.getConfig().getServiceIp());
node.setPort("8411");
node.setTtl("1");
nodes.add(node);