net: virtphy, osmo-bts-virtual: use loopback-dev

Use the loopback device for virtual Um traffic, so it doesn't slow down
other net devs.

Change-Id: Ibc7ff3aaaca4872f4105825167eb33b66bc23342
changes/51/27451/1
Oliver Smith 12 months ago
parent 5452c6e901
commit 67cd47f0e8
  1. 1
      net/templates/common_osmo_bts
  2. 14
      net/templates/run.sh

@ -3,6 +3,7 @@ line vty
phy 0
instance 0
virtual-um net-device lo
bts 0
band ${BTS_BAND}

@ -46,6 +46,18 @@ if [ -z "$(ip addr show | grep "${TO_RAN_IU_IP}")" ]; then
sudo ip addr add ${TO_RAN_IU_IP}/32 dev $dev
fi
# Enable multicast on lo for virtual MS
if [ "${MS_RUN_IN_OSMO_DEV}" = 1 ]; then
if [ -z "$(ip link show lo | grep MULTICAST)" ]; then
echo "Loopback device doesn't have multicast enabled! Hit enter to enable it"
read enter_to_continue
sudo ip link set lo multicast on
fi
if [ -z "$(ip route show dev lo | grep '224\.0\.0\.0/4')" ]; then
sudo ip route add 224.0.0.0/4 dev lo
fi
fi
logdir="current_log"
piddir="run/pids"
launcherdir="run/launchers"
@ -183,7 +195,7 @@ stp4ran="osmo-stp -c osmo-stp-ran.cfg"
bsc="LD_LIBRARY_PATH=/usr/local/lib gdb -ex run --args osmo-bsc"
bscnat="osmo-bsc-nat"
bts="osmo-bts-virtual"
virtphy="virtphy"
virtphy="virtphy -D lo"
ms="mobile -c mobile.cfg"
if [ "x${MSC_MNCC}" != "xinternal" ]; then

Loading…
Cancel
Save