Automatic rule installation in case of policy change in software defined networks