Check to handle index out of range error when parsing uplink_profile and vtep_config