original_docstring: Resest persistence for virtual server instance.
  
          Clears persistence and deletes profiles.
  
          :param service: Dictionary which contains a listener, pool
          and load balancer definition.
          :param bigips: Single BigIP instances to update.
          
docstring: Resest persistence for virtual server instance.
  Clears persistence and deletes profiles.
docstring_tokens: Resest persistence for virtual server instance . Clears persistence and deletes profiles .
code: def remove_session_persistence(self, service, bigips):
          """Resest persistence for virtual server instance.
  
          Clears persistence and deletes profiles.
  
          :param service: Dictionary which contains a listener, pool
          and load balancer definition.
          :param bigips: Single BigIP instances to update.
          """
          pool = service["pool"]
          if "session_persistence" in pool and pool['session_persistence']:
              vip = self.service_adapter.get_virtual_name(service)
              vip["persist"] = []
              vip["fallbackPersistence"] = ""
              persistence = pool['session_persistence']
              persistence_type = persistence['type']
  
              for bigip in bigips:
                  # remove persistence
                  self.vs_helper.update(bigip, vip)
                  LOG.debug("Cleared session persistence for %s" % vip["name"])
  
                  # remove profiles and rules
                  if persistence_type == 'HTTP_COOKIE':
                      self._remove_profile(vip, 'http', bigip)
                  elif persistence_type == 'APP_COOKIE':
                      self._remove_profile(vip, 'http', bigip)
                      if 'cookie_name' in persistence:
                          self._remove_cookie_persist_rule(
                              vip, bigip)
code_tokens: def remove_session_persistence ( self , service , bigips ) : pool = service [ "pool" ] if "session_persistence" in pool and pool [ 'session_persistence' ] : vip = self . service_adapter . get_virtual_name ( service ) vip [ "persist" ] = [ ] vip [ "fallbackPersistence" ] = "" persistence = pool [ 'session_persistence' ] persistence_type = persistence [ 'type' ] for bigip in bigips : self . vs_helper . update ( bigip , vip ) LOG . debug ( "Cleared session persistence for %s" % vip [ "name" ] ) if persistence_type == 'HTTP_COOKIE' : self . _remove_profile ( vip , 'http' , bigip ) elif persistence_type == 'APP_COOKIE' : self . _remove_profile ( vip , 'http' , bigip ) if 'cookie_name' in persistence : self . _remove_cookie_persist_rule ( vip , bigip )
short_docstring: Resest persistence for virtual server instance.
short_docstring_tokens: Resest persistence for virtual server instance .
comment: """Resest persistence for virtual server instance.
  
          Clears persistence and deletes profiles.
  
          :param service: Dictionary which contains a listener, pool
          and load balancer definition.
          :param bigips: Single BigIP instances to update.
          """$SEP$# remove persistence$SEP$# remove profiles and rules