original_docstring: 
      Check that sub-port is available in redis-db
  
      Args:
          duthost: DUT host object
          sub_port: Sub-port interface of DUT
          removed: Bool value which show availability of sub-port on the DUT
  
      Returns:
          Bool value which confirm availability of sub-port in redis-db
      
docstring: Check that sub-port is available in redis-db
docstring_tokens: Check that sub - port is available in redis - db
code: def check_sub_port(duthost, sub_port, removed=False):
      """
      Check that sub-port is available in redis-db
  
      Args:
          duthost: DUT host object
          sub_port: Sub-port interface of DUT
          removed: Bool value which show availability of sub-port on the DUT
  
      Returns:
          Bool value which confirm availability of sub-port in redis-db
      """
      config_facts = duthost.config_facts(host=duthost.hostname, source="running")['ansible_facts']
      sub_ports = set(config_facts.get('VLAN_SUB_INTERFACE', {}).keys())
      if not isinstance(sub_port, list):
          sub_port = [sub_port]
  
      if removed:
          return sub_ports.isdisjoint(set(sub_port))
  
      return sub_ports.issuperset(set(sub_port))
code_tokens: def check_sub_port ( duthost , sub_port , removed = False ) : config_facts = duthost . config_facts ( host = duthost . hostname , source = "running" ) [ 'ansible_facts' ] sub_ports = set ( config_facts . get ( 'VLAN_SUB_INTERFACE' , { } ) . keys ( ) ) if not isinstance ( sub_port , list ) : sub_port = [ sub_port ] if removed : return sub_ports . isdisjoint ( set ( sub_port ) ) return sub_ports . issuperset ( set ( sub_port ) )
short_docstring: Check that sub-port is available in redis-db
short_docstring_tokens: Check that sub - port is available in redis - db
comment: """
      Check that sub-port is available in redis-db
  
      Args:
          duthost: DUT host object
          sub_port: Sub-port interface of DUT
          removed: Bool value which show availability of sub-port on the DUT
  
      Returns:
          Bool value which confirm availability of sub-port in redis-db
      """