original_docstring: Adds profile to virtual server instance. Assumes Common.
  
          :param vip: Dictionary which contains name and partition of
          virtual server.
          :param profile_name: Name of profile to add.
          :param bigip: Single BigIP instances to update.
          
docstring: Adds profile to virtual server instance. Assumes Common.
docstring_tokens: Adds profile to virtual server instance . Assumes Common .
code: def _add_profile(self, vip, profile_name, bigip, context='all'):
          """Adds profile to virtual server instance. Assumes Common.
  
          :param vip: Dictionary which contains name and partition of
          virtual server.
          :param profile_name: Name of profile to add.
          :param bigip: Single BigIP instances to update.
          """
          v = bigip.tm.ltm.virtuals.virtual
          obj = v.load(name=vip["name"], partition=vip["partition"])
          p = obj.profiles_s
          profiles = p.get_collection()
  
          # see if profile exists
          for profile in profiles:
              if profile.name == profile_name:
                  return
  
          # not found -- add profile (assumes Common partition)
          p.profiles.create(name=profile_name,
                            partition='Common',
                            context=context)
          LOG.debug("Created profile %s" % profile_name)
code_tokens: def _add_profile ( self , vip , profile_name , bigip , context = 'all' ) : v = bigip . tm . ltm . virtuals . virtual obj = v . load ( name = vip [ "name" ] , partition = vip [ "partition" ] ) p = obj . profiles_s profiles = p . get_collection ( ) for profile in profiles : if profile . name == profile_name : return p . profiles . create ( name = profile_name , partition = 'Common' , context = context ) LOG . debug ( "Created profile %s" % profile_name )
short_docstring: Adds profile to virtual server instance.
short_docstring_tokens: Adds profile to virtual server instance .
comment: """Adds profile to virtual server instance. Assumes Common.
  
          :param vip: Dictionary which contains name and partition of
          virtual server.
          :param profile_name: Name of profile to add.
          :param bigip: Single BigIP instances to update.
          """$SEP$# see if profile exists$SEP$# not found -- add profile (assumes Common partition)