change the way it check switch is an owner of a port
change the way it check switch is an owner of a port