Because of broken check why one port has similar address to the other
one, the first one by mistake could be set as virtual.
On create of port_2 it is set as 'virtual', but shouldn't.
This patch fixes that bug by using common function
Cherry-picked from Neutron: https://review.opendev.org/#/c/732690/
(cherry picked from commit