code: def create_interface_connection(interface_a, interface_b):
      '''
      .. versionadded:: 2019.2.0
  
      Create an interface connection between 2 interfaces
  
      interface_a
          Interface id for Side A
      interface_b
          Interface id for Side B
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_interface_connection 123 456
      '''
      payload = {'interface_a': interface_a,
                 'interface_b': interface_b}
      ret = _add('dcim', 'interface-connections', payload)
      if ret:
          return {'dcim': {'interface-connections': {ret['id']: payload}}}
      else:
          return ref create_interface_connection(interface_a, interface_b):
      '''
      .. versionadded:: 2019.2.0
  
      Create an interface connection between 2 interfaces
  
      interface_a
          Interface id for Side A
      interface_b
          Interface id for Side B
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_interface_connection 123 456
      '''
      payload = {'interface_a': interface_a,
                 'interface_b': interface_b}
      ret = _add('dcim', 'interface-connections', payload)
      if ret:
          return {'dcim': {'interface-connections': {ret['id']: payload}}}
      else:
          return ret
docs: .. versionadded:: 2019.2.0
  
      Create an interface connection between 2 interfaces
  
      interface_a
          Interface id for Side A
      interface_b
          Interface id for Side B
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion netbox.create_interface_connection 123 456