code: def create_ikepolicy(self, name, **kwargs):
          '''
          Creates a new IKEPolicy
          '''
          body = {'name': name}
          if 'phase1_negotiation_mode' in kwargs:
              body['phase1_negotiation_mode'] = kwargs['phase1_negotiation_mode']
          if 'auth_algorithm' in kwargs:
              body['auth_algorithm'] = kwargs['auth_algorithm']
          if 'encryption_algorithm' in kwargs:
              body['encryption_algorithm'] = kwargs['encryption_algorithm']
          if 'pfs' in kwargs:
              body['pfs'] = kwargs['pfs']
          if 'ike_version' in kwargs:
              body['ike_version'] = kwargs['ike_version']
          if 'units' in kwargs:
              body['lifetime'] = {'units': kwargs['units']}
          if 'value' in kwargs:
              if 'lifetime' not in body:
                  body['lifetime'] = {}
              body['lifetime']['value'] = kwargs['value']
          return self.network_conn.create_ikepolicy(body={'ikepolicy': body}f create_ikepolicy(self, name, **kwargs):
          '''
          Creates a new IKEPolicy
          '''
          body = {'name': name}
          if 'phase1_negotiation_mode' in kwargs:
              body['phase1_negotiation_mode'] = kwargs['phase1_negotiation_mode']
          if 'auth_algorithm' in kwargs:
              body['auth_algorithm'] = kwargs['auth_algorithm']
          if 'encryption_algorithm' in kwargs:
              body['encryption_algorithm'] = kwargs['encryption_algorithm']
          if 'pfs' in kwargs:
              body['pfs'] = kwargs['pfs']
          if 'ike_version' in kwargs:
              body['ike_version'] = kwargs['ike_version']
          if 'units' in kwargs:
              body['lifetime'] = {'units': kwargs['units']}
          if 'value' in kwargs:
              if 'lifetime' not in body:
                  body['lifetime'] = {}
              body['lifetime']['value'] = kwargs['value']
          return self.network_conn.create_ikepolicy(body={'ikepolicy': body})
docs: Creates a new IKEPolicy