Allow the user to modify the external network ips
In the 900-use-it.sh script, the user can define the gateway (OSH_BR_EX_ADDR) and the subnet of the external network (OSH_EXT_SUBNET). However, in the script that configures the gateway correctly in br-ex, these values are hardcoded. This patch allows the user to modify them by a env. variable, same as the 900-use-it.sh script does Change-Id: I25124024ebb72ff5fea8903fb393b71a052d0f93 Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
3af5f78f5c
commit
4ecf5af8df
@ -16,8 +16,8 @@
|
||||
set -xe
|
||||
|
||||
# Assign IP address to br-ex
|
||||
OSH_BR_EX_ADDR="172.24.4.1/24"
|
||||
OSH_EXT_SUBNET="172.24.4.0/24"
|
||||
: ${OSH_EXT_SUBNET:="172.24.4.0/24"}
|
||||
: ${OSH_BR_EX_ADDR:="172.24.4.1/24"}
|
||||
sudo ip addr add ${OSH_BR_EX_ADDR} dev br-ex
|
||||
sudo ip link set br-ex up
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user