[201811] Fix radv start condition logic (#9492)
This commit is contained in:
parent
70d87ccff4
commit
5bb59f6136
@ -6,8 +6,8 @@ supervisorctl start rsyslogd
|
||||
|
||||
# Router advertiser should only run on ToR (T0) devices
|
||||
DEVICE_ROLE=$(sonic-cfggen -d -v "DEVICE_METADATA.localhost.type")
|
||||
if [ "$DEVICE_ROLE" != "ToRRouter" || "$DEVICE_ROLE" != "MgmtToRRouter" || "$DEVICE_ROLE" != "EPMS"]; then
|
||||
echo "Device role is not ToRRouter. Not starting router advertiser process."
|
||||
if [[ "$DEVICE_ROLE" != "ToRRouter" && "$DEVICE_ROLE" != "MgmtToRRouter" && "$DEVICE_ROLE" != "EPMS" ]]; then
|
||||
echo "Device role is not ToRRouter, MgmtToRRouter, or EPMS. Not starting router advertiser process."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user