original_docstring: Add a name from a DHCP request
docstring: Add a name from a DHCP request
docstring_tokens: Add a name from a DHCP request
code: def add_name(self, addr, name, description):
          """Add a name from a DHCP request"""
          if addr not in self.names_for_hw:
              self.names_for_hw[addr] = set()
          if name not in self.names_for_hw[addr]:
              logger.info("Adding name for %s: %r (%s)", addr, name, description)
              self.names_for_hw[addr].add(name)
code_tokens: def add_name ( self , addr , name , description ) : if addr not in self . names_for_hw : self . names_for_hw [ addr ] = set ( ) if name not in self . names_for_hw [ addr ] : logger . info ( "Adding name for %s: %r (%s)" , addr , name , description ) self . names_for_hw [ addr ] . add ( name )
short_docstring: Add a name from a DHCP request
short_docstring_tokens: Add a name from a DHCP request
comment: """Add a name from a DHCP request"""