Update condition if supermaster ip changes; add the condition for supermaster insert when ip_uptaed is true