Subject: Rare project developers
List archive
- From: Frédéric LOUI <>
- To:
- Subject: Re: [rare-dev] Swap Different Configuration in FreeRtr
- Date: Fri, 26 Nov 2021 15:57:56 +0100
- Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr 62E2CA07B7
Hi !
In p4 switch, software configuration is saved in /etc/freertr/rtr-sw.txt
Then you can save multiple files:
/etc/freertr/rtr-test1-sw.txt
/etc/freertr/rtr-test2-sw.txt
/etc/freertr/rtr-test3-sw.txt
/etc/freertr/rtr-test4-sw.txt
/etc/freertr/rtr-test5-sw.txt
And make sure you start freertr with the right
/etc/freertr/rtr-test<x>-sw.txt files
In /opt/freertr/bin/hwdet-main.sh
...
while (true); do
cd /opt/freertr/lib
stty raw < /dev/tty
java -Xmx2048m -jar rtr.jar router $FREERTR_CONFIG/rtr-test<x>
if [ $? -eq 4 ] ; then
sync
reboot -f
fi
stty cooked < /dev/tty
sleep 1
done
…
Note that in that case you also need to have rtr-test<x>-hw.txt
But maybe mc36 have more elegant solutions in his sleeves.
Hope this helps !
Frederic
> Le 26 nov. 2021 à 15:46, Carmen Misa Moreira <>
> a écrit :
>
> Hi all,
>
> I was wondering if is possible to have several control plane configurations
> and swap between them depending on the test that you want to execute, for
> example, one configuration with 3 VLANs and 1 VRF and the other without
> VLANs but with 2 VRF and then test different behaviours in the network just
> by loading one of this configurations. Two different control plane
> configurations with different purposes.
>
> Thanks for your time,
>
> Best regards,
>
> Carmen Misa
>
- [rare-dev] Swap Different Configuration in FreeRtr, Carmen Misa Moreira, 11/26/2021
- Re: [rare-dev] Swap Different Configuration in FreeRtr, Frédéric LOUI, 11/26/2021
- Re: [rare-dev] Swap Different Configuration in FreeRtr, mc36, 11/26/2021
- Re: [rare-dev] Swap Different Configuration in FreeRtr, Frédéric LOUI, 11/26/2021
Archive powered by MHonArc 2.6.19.