def get_ptf_server_intf_index(tor, tbinfo, iface):
    """Get the index of ptf ToR-facing interface on ptf."""
    mg_facts = tor.get_extended_minigraph_facts(tbinfo)
    return mg_facts["minigraph_ptf_indices"][iface]