Copy function get_port_profile_id to setup_l3cfgagent_networking.sh