86a13610cb
- Introduced TS common file in docker as well and moved common functions. - TSA/B/C scripts run only in BGP instances for front end ASICs. In addition skip enforcing it on route maps used between internal BGP sessions. admin@str--acs-1:~$ sudo /usr/bin/TSA System Mode: Normal -> Maintenance and in case of Multi-ASIC admin@str--acs-1:~$ sudo /usr/bin/TSA BGP0 : System Mode: Normal -> Maintenance BGP1 : System Mode: Normal -> Maintenance BGP2 : System Mode: Normal -> Maintenance
21 lines
307 B
Bash
Executable File
21 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Load the common functions
|
|
source /usr/bin/TS
|
|
|
|
check_not_installed
|
|
not_installed=$?
|
|
|
|
check_installed
|
|
installed=$?
|
|
|
|
if [[ $installed -eq 0 ]];
|
|
then
|
|
echo "System Mode: Normal"
|
|
elif [[ $not_installed -eq 0 ]];
|
|
then
|
|
echo "System Mode: Maintenance"
|
|
else
|
|
echo "System Mode: Not consistent"
|
|
fi
|