def confederation_peers
      # NX: confederation peers is retrieved as a string '1 2 3'
      # XR: retrieved as an array.
      # So make it an array in the NX case.
      # Sort the end results to make it consistent across both platforms.
      return nil if platform == :ios_xr && @vrf != 'default'
      peers = config_get('bgp', 'confederation_peers', @get_args)
      peers = peers.split(' ') if peers.is_a?(String)
      peers.sort
    end
def confederation_peers
      # NX: confederation peers is retrieved as a string '1 2 3'
      # XR: retrieved as an array.
      # So make it an array in the NX case.
      # Sort the end results to make it consistent across both platforms.
      return nil if platform == :ios_xr && @vrf != 'default'
      peers = config_get('bgp', 'confederation_peers', @get_args)
      peers = peers.split(' ') if peers.is_a?(String)
      peers.sort
    end
Confederation Peers (Getter/Setter/Default)