original_docstring: 
      This method checks for pim ssm config using the vrouter-show command.
      If a user already exists on the given switch, return True else False.
      :param module: The Ansible module to fetch input parameters
      :param cli: The CLI string
      
docstring: This method checks for pim ssm config using the vrouter-show command.
  If a user already exists on the given switch, return True else False.
docstring_tokens: This method checks for pim ssm config using the vrouter - show command . If a user already exists on the given switch return True else False .
code: def check_cli(module, cli):
      """
      This method checks for pim ssm config using the vrouter-show command.
      If a user already exists on the given switch, return True else False.
      :param module: The Ansible module to fetch input parameters
      :param cli: The CLI string
      """
      name = module.params['pn_vrouter_name']
      network = module.params['pn_network']
  
      show = cli
      cli += ' vrouter-show name %s format name no-show-headers' % name
      rc, out, err = run_commands(module, cli)
      VROUTER_EXISTS = '' if out else None
  
      cli = show
      cli += ' vrouter-bgp-network-show vrouter-name %s network %s format network no-show-headers' % (name, network)
      out = run_commands(module, cli)[1]
      out = out.split()
      NETWORK_EXISTS = True if network in out[-1] else False
  
      return NETWORK_EXISTS, VROUTER_EXISTS
code_tokens: def check_cli ( module , cli ) : name = module . params [ 'pn_vrouter_name' ] network = module . params [ 'pn_network' ] show = cli cli += ' vrouter-show name %s format name no-show-headers' % name rc , out , err = run_commands ( module , cli ) VROUTER_EXISTS = '' if out else None cli = show cli += ' vrouter-bgp-network-show vrouter-name %s network %s format network no-show-headers' % ( name , network ) out = run_commands ( module , cli ) [ 1 ] out = out . split ( ) NETWORK_EXISTS = True if network in out [ - 1 ] else False return NETWORK_EXISTS , VROUTER_EXISTS
short_docstring: This method checks for pim ssm config using the vrouter-show command.
short_docstring_tokens: This method checks for pim ssm config using the vrouter - show command .
comment: """
      This method checks for pim ssm config using the vrouter-show command.
      If a user already exists on the given switch, return True else False.
      :param module: The Ansible module to fetch input parameters
      :param cli: The CLI string
      """