def show_ver():
 try:
  ret = sendline('show ver')
 except TerminalException as e:
  log.error(e)
  return 'Failed to "show ver"'
 return ret

def show_ver ( ) : try : ret = sendline ( 'show ver' ) except TerminalException as e : log . error ( e ) return 'Failed to "show ver"' return ret
shortcut to run show ver on switch .