Commit 669f7bc7 authored by wangyongshou's avatar wangyongshou

add param:N3_GW

parent 2c56626a
...@@ -53,7 +53,8 @@ dpdk { ...@@ -53,7 +53,8 @@ dpdk {
ipaddr @N3_IP@ ipaddr @N3_IP@
netmask 24 netmask 24
gateway 192.168.2.197 gateway @N3_GW@
} }
dev @PCI_ADDR_ID_EXPORT@ dev @PCI_ADDR_ID_EXPORT@
......
...@@ -3,6 +3,7 @@ vpp: ...@@ -3,6 +3,7 @@ vpp:
gtpu_entry_ip: 192.168.2.182 gtpu_entry_ip: 192.168.2.182
gtpu_export_ip: 192.168.2.22 gtpu_export_ip: 192.168.2.22
ip_link: ip_link:
N3_GW: 192.168.2.199
vppHostIP: 192.168.2.1 vppHostIP: 192.168.2.1
gtpu_entry: ens33 gtpu_entry: ens33
gtpu_export: ens34 gtpu_export: ens34
......
...@@ -29,7 +29,7 @@ SNAT_IP="" ...@@ -29,7 +29,7 @@ SNAT_IP=""
VPPHOST="" VPPHOST=""
DPDK_EXPORT="" DPDK_EXPORT=""
DPDK_ENTRY="" DPDK_ENTRY=""
N3_GW=""
DPDK_ENTRY_PCI="" DPDK_ENTRY_PCI=""
DPDK_EXPORT_PCI="" DPDK_EXPORT_PCI=""
...@@ -44,10 +44,14 @@ function init_configure(){ ...@@ -44,10 +44,14 @@ function init_configure(){
cp $base/plugin/yq $current cp $base/plugin/yq $current
# nat # nat
SNAT_IP=$($current/yq r $yaml vpp.ip_link.snatIP) SNAT_IP=$($current/yq r $yaml vpp.ip_link.snatIP)
N3_GW_IP=$($current/yq r $yaml vpp.ip_link.N3_GW)
VPPHOST=$($current/yq r $yaml vpp.ip_link.vppHost) VPPHOST=$($current/yq r $yaml vpp.ip_link.vppHost)
DPDK_EXPORT=$($current/yq r $yaml vpp.ip_link.gtpu_export) DPDK_EXPORT=$($current/yq r $yaml vpp.ip_link.gtpu_export)
DPDK_ENTRY=$($current/yq r $yaml vpp.ip_link.gtpu_entry) DPDK_ENTRY=$($current/yq r $yaml vpp.ip_link.gtpu_entry)
CPUNUMBER=$($current/yq r $yaml vpp.ip_link.cpu) CPUNUMBER=$($current/yq r $yaml vpp.ip_link.cpu)
sed 's/@N3_GW@/${N3_GW_IP}/' /opt/5gc/startup_debug.conf
rm -rf $current/yq rm -rf $current/yq
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment