Created
May 31, 2020 05:58
-
-
Save zackramjan/4538a891dcf7a4b8d3428fbf375e0b7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/vbash | |
source /opt/vyatta/etc/functions/script-template | |
balanceA=${1:-100} | |
balanceB="$((100-$balanceA))" | |
configure | |
set load-balance group G interface eth0 weight $balanceA | |
set load-balance group G interface eth1 weight $balanceB | |
commit | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment