def METHOD_NAME(dvs, port_name):
  counters_db = swsscommon.DBConnector(swsscommon.COUNTERS_DB, dvs.redis_sock, 0)
  port_map_tbl = swsscommon.Table(counters_db, "COUNTERS_PORT_NAME_MAP")
  port_oid = None
  for k in port_map_tbl.get("")[1]:
        if k[0] == port_name:
            port_oid = k[1]
  return port_oid