[radv] Run radv on MgmtToRRouter (#9423)

Radvd is not running on M0
This commit is contained in:
kellyyeh 2021-12-02 21:06:26 -08:00 committed by GitHub
parent a80319e2d0
commit c07c0bb59c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ 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" ]; then
if [ "$DEVICE_ROLE" != "ToRRouter" || "$DEVICE_ROLE" != "MgmtToRRouter" || "$DEVICE_ROLE" != "EPMS"]; then
echo "Device role is not ToRRouter. Not starting router advertiser process."
exit 0
fi