- id_int = atoi(id_str);
- if (id_int < 1 || id_int > UINT32_MAX) {
- ovs_fatal(0, "%s: autopath id %d is not in valid range "
- "1 to %"PRIu32, s_, id_int, UINT32_MAX);
+ ap->port = ofputil_port_from_string(id_str);
+ if (!ap->port) {
+ ovs_fatal(0, "%s: bad port number", s_);