Skip to content
Snippets Groups Projects
Commit 754df94f authored by David Schmitz's avatar David Schmitz
Browse files

update for fodexabgp-containerlab1/Dockerfile

parent 9f17ad52
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,9 @@ setup_adminuser__peer_ip_prefix1="0.0.0.0/0" ...@@ -79,6 +79,9 @@ setup_adminuser__peer_ip_prefix1="0.0.0.0/0"
setup_exabgp=0 setup_exabgp=0
ifc_setup__name=""
ifc_setup__ip_addr_and_subnetmask=""
############################################################################## ##############################################################################
############################################################################## ##############################################################################
...@@ -212,13 +215,13 @@ while [ $# -gt 0 ]; do ...@@ -212,13 +215,13 @@ while [ $# -gt 0 ]; do
shift 1 shift 1
elif [ $# -ge 1 -a "$1" = "--ip-addr-set" ]; then # for easy support for of extra veth-pair end point init in containers for containerlab elif [ $# -ge 1 -a "$1" = "--ip-addr-set" ]; then # for easy support for of extra veth-pair end point init in containers for containerlab
shift 1 shift 1
ifc_name="$1" ifc_setup__name="$1"
shift 1 shift 1
ip_addr_and_subnetmask="$1" ifc_setup__ip_addr_and_subnetmask="$1"
shift 1 shift 1
echo "$0: init of interface $ifc_name with ip_addr_and_subnetmask=$ip_addr_and_subnetmask" 1>&2 echo "$0: init of interface $ifc_setup__name with ip_addr_and_subnetmask=$ifc_setup__ip_addr_and_subnetmask" 1>&2
ifconfig "$ifc_name" "$ip_addr_and_subnetmask" ifconfig "$ifc_setup__name" "$ifc_setup__ip_addr_and_subnetmask"
ifconfig "$ifc_name" 1>&2 ifconfig "$ifc_setup__name" 1>&2
else else
break break
fi fi
...@@ -736,6 +739,10 @@ EOF ...@@ -736,6 +739,10 @@ EOF
( (
echo "FOD_RUNMODE=\"$FOD_RUNMODE\"" echo "FOD_RUNMODE=\"$FOD_RUNMODE\""
echo "USE_EXABGP=\"$setup_exabgp\"" echo "USE_EXABGP=\"$setup_exabgp\""
if [ -n "$ifc_setup__name" ]; then
echo "ifc_setup__name=\"$ifc_setup__name\""
echo "ifc_setup__ip_addr_and_subnetmask=\"$ifc_setup__ip_addr_and_subnetmask\""
fi
) > "./runfod.conf" ) > "./runfod.conf"
## ##
......
...@@ -90,6 +90,9 @@ setup_adminuser__peer_ip_prefix1="0.0.0.0/0" ...@@ -90,6 +90,9 @@ setup_adminuser__peer_ip_prefix1="0.0.0.0/0"
setup_exabgp=0 setup_exabgp=0
ifc_setup__name=""
ifc_setup__ip_addr_and_subnetmask=""
############################################################################## ##############################################################################
############################################################################## ##############################################################################
...@@ -320,13 +323,13 @@ while [ $# -gt 0 ]; do ...@@ -320,13 +323,13 @@ while [ $# -gt 0 ]; do
shift 1 shift 1
elif [ $# -ge 1 -a "$1" = "--ip-addr-set" ]; then # for easy support for of extra veth-pair end point init in containers for containerlab elif [ $# -ge 1 -a "$1" = "--ip-addr-set" ]; then # for easy support for of extra veth-pair end point init in containers for containerlab
shift 1 shift 1
ifc_name="$1" ifc_setup__name="$1"
shift 1 shift 1
ip_addr_and_subnetmask="$1" ifc_setup__ip_addr_and_subnetmask="$1"
shift 1 shift 1
echo "$0: init of interface $ifc_name with ip_addr_and_subnetmask=$ip_addr_and_subnetmask" 1>&2 echo "$0: init of interface $ifc_setup__name with ip_addr_and_subnetmask=$ifc_setup__ip_addr_and_subnetmask" 1>&2
ifconfig "$ifc_name" "$ip_addr_and_subnetmask" ifconfig "$ifc_setup__name" "$ifc_setup__ip_addr_and_subnetmask"
ifconfig "$ifc_name" 1>&2 ifconfig "$ifc_setup__name" 1>&2
else else
break break
fi fi
...@@ -863,6 +866,10 @@ EOF ...@@ -863,6 +866,10 @@ EOF
( (
echo "FOD_RUNMODE=\"$FOD_RUNMODE\"" echo "FOD_RUNMODE=\"$FOD_RUNMODE\""
echo "USE_EXABGP=\"$setup_exabgp\"" echo "USE_EXABGP=\"$setup_exabgp\""
if [ -n "$ifc_setup__name" ]; then
echo "ifc_setup__name=\"$ifc_setup__name\""
echo "ifc_setup__ip_addr_and_subnetmask=\"$ifc_setup__ip_addr_and_subnetmask\""
fi
) > "./runfod.conf" ) > "./runfod.conf"
## ##
......
...@@ -6,6 +6,13 @@ fi ...@@ -6,6 +6,13 @@ fi
# #
if [ -n "$ifc_setup__name" ]; then
echo "$0: setting ip address of $ifc_setup__name to $ifc_setup__ip_addr_and_subnetmask" 1>&2
ifconfig "$ifc_setup__name" "$ifc_setup__ip_addr_and_subnetmask"
fi
#
if [ "$FOD_RUNMODE" = "via_systemd" ]; then if [ "$FOD_RUNMODE" = "via_systemd" ]; then
echo "$0: using runmode via_systemd, nothing todo" 1>&2 echo "$0: using runmode via_systemd, nothing todo" 1>&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment