Radius will generate config for every raduis server under /etc/pam_radius_auth.d/ for example:
/etc/pam_radius_auth.d/100.127.20.22_1812.conf
However, if we add a new radius server, then delete it, the raduis config file for the server will not delete.
Here is how to reproduce it:
- run generic_config_updater/test_aaa.py, this test case will create raduis server during test and remove it after test finish.
- check /etc/pam_radius_auth.d/ there will be a radius config file which should not exist: /etc/pam_radius_auth.d/100.127.20.22_1812.conf
Issue code is here, hostcfgd does not delete old radius config file: