Add segment range check for vlan and vxlan network profiles.

Closes Bug: CSCuj30590