docs: def _get_switchports(profile):
          """Return list of (switch_ip, interface) tuples from local_link_info"""
          switchports = []
          if profile.get('local_link_information'):
              for link in profile['local_link_information']:
                  if 'switch_info' in link and 'port_id' in link:
                      switch = link['switch_info']
                      interface = link['port_id']
                      switchports.append((switch, interface))
                  else:
                      LOG.warning("Incomplete link information: %s", link)
          return switchports