def password
      # Unfortunately nxapi returns "\\" when the password is not set
      password = config_get('vtp', 'password') if Feature.vtp_enabled?
      return '' if password.nil? || password == '\\'
      password
    rescue Cisco::RequestNotSupported => e
      # Certain platforms generate a Cisco::RequestNotSupported when the
      # vtp password is not set.  We catch this specific error and
      # return empty '' for the password.
      return '' if e.message[/Structured output not supported/]
    end
def password
      # Unfortunately nxapi returns "\\" when the password is not set
      password = config_get('vtp', 'password') if Feature.vtp_enabled?
      return '' if password.nil? || password == '\\'
      password
    rescue Cisco::RequestNotSupported => e
      # Certain platforms generate a Cisco::RequestNotSupported when the
      # vtp password is not set.  We catch this specific error and
      # return empty '' for the password.
      return '' if e.message[/Structured output not supported/]
    end
Get vtp password