Add update_port function, testcase for port and subnet rename