old_contents: """
  Handler for Cisco CSR device specific information.
  
  Note that for proper import, the classname has to be:
  
      "<Devicename>DeviceHandler"
  
  ...where <Devicename> is something like "Default", "Nexus", etc.
  
  All device-specific handlers derive from the DefaultDeviceHandler, which implements the
  generic information needed for interaction with a Netconf server.
  
  """
  
  
  from .default import DefaultDeviceHandler
  
  class CsrDeviceHandler(DefaultDeviceHandler):
      """
      Cisco CSR handler for device specific information.
  
      """
      def __init__(self, device_params):
          super(CsrDeviceHandler, self).__init__(device_params)
  
      def get_capabilities(self):
          # Just need to replace a single value in the default capabilities
          c = super(CsrDeviceHandler, self).get_capabilities()
          c[0] = "urn:ietf:params:xml:ns:netconf:base:1.0"
          return c
  
      def add_additional_ssh_connect_params(self, kwargs):
          kwargs['allow_agent']   = False
          kwargs['look_for_keys'] = False
  
      def perform_qualify_check(self):
          return False
  
new_contents: """
  Handler for Cisco CSR device specific information.
  
  Note that for proper import, the classname has to be:
  
      "<Devicename>DeviceHandler"
  
  ...where <Devicename> is something like "Default", "Nexus", etc.
  
  All device-specific handlers derive from the DefaultDeviceHandler, which implements the
  generic information needed for interaction with a Netconf server.
  
  """
  
  
  from .default import DefaultDeviceHandler
  
  def csr_unknown_host_cb(host, fingerprint):
          #This will ignore the unknown host check when connecting to CSR devices
          return True
  
  class CsrDeviceHandler(DefaultDeviceHandler):
      """
      Cisco CSR handler for device specific information.
  
      """
      def __init__(self, device_params):
          super(CsrDeviceHandler, self).__init__(device_params)
  
      def add_additional_ssh_connect_params(self, kwargs):
          kwargs['allow_agent']   = False
          kwargs['look_for_keys'] = False
          kwargs['unknown_host_cb'] = csr_unknown_host_cb
  
      def perform_qualify_check(self):
          return False
  
subject: Update Cisco csr device handler