<?xml version="1.0" encoding="US-ASCII"?>
<!-- <?xml version="1.0" encoding="UTF-8"?> -->
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com)
     by Daniel M Kohn (private)
-->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<?rfc toc="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc subcompact="no"?>
<?rfc symrefs="yes"?>

<rfc ipr="trust200902" category="std" docName="draft-ietf-i2nsf-capability-data-model-04">

<front>
    <title abbrev="I2NSF Capability YANG Data Model">
    I2NSF Capability YANG Data Model
    </title>
        
    <author initials="S." surname="Hares" fullname="Susan Hares">
        <organization abbrev="Huawei">
            Huawei 
        </organization>

        <address>
            <postal>
                <street>7453 Hickory Hill</street>
                <city>Saline</city> <region>MI</region>
                <code>48176</code>
                <country>USA</country>
            </postal>
            <phone>+1-734-604-0332</phone>
            <email>shares@ndzh.com</email>
        </address>
    </author>

    <author initials="J." surname="Jeong" fullname="Jaehoon Paul Jeong">
        <organization abbrev="Sungkyunkwan University">
            Department of Software 
        </organization>

        <address>
            <postal>
                <street>Sungkyunkwan University</street>
                <street>2066 Seobu-Ro, Jangan-Gu</street>
                <city>Suwon</city> <region>Gyeonggi-Do</region>
                <code>16419</code>
                <country>Republic of Korea</country>
            </postal>
            <phone>+82 31 299 4957</phone>
            <facsimile>+82 31 290 7996</facsimile>
            <email>pauljeong@skku.edu</email>
            <uri>http://iotlab.skku.edu/people-jaehoon-jeong.php
        </uri>
        </address>
    </author>

    <author initials="J." surname="Kim" fullname="Jinyong Tim Kim">
        <organization abbrev="Sungkyunkwan University">
            Department of Computer Engineering
        </organization>

        <address>
            <postal>
                <street>Sungkyunkwan University</street>
                <street>2066 Seobu-Ro, Jangan-Gu</street>
                <city>Suwon</city> <region>Gyeonggi-Do</region>
                <code>16419</code>
                <country>Republic of Korea</country>
            </postal>
            <phone>+82 10 8273 0930</phone>
            <email>timkim@skku.edu</email>
        </address>
    </author>

    <author initials="R." surname="Moskowitz" fullname="Robert Moskowitz">
        <organization abbrev="HTT Consulting">
            HTT Consulting
        </organization>

        <address>
            <postal>
                <street></street>
                <city>Oak Park</city> <region>MI</region>
                <code></code>
                <country>USA</country>
            </postal>
            <phone>+1-248-968-9809</phone>
            <email>rgm@htt-consult.com</email>
        </address>
    </author>

   <author initials="Q." surname="Lin" fullname="Qiushi Lin">
        <organization abbrev="Huawei">
                        Huawei
        </organization>

        <address>
            <postal>
                <street>Huawei Industrial Base</street>
                <city>Shenzhen</city> <region>Guangdong 518129</region>
                <code></code>
                <country>China</country>
            </postal>
            <phone></phone>
            <email>linqiushi@huawei.com</email>
        </address>
    </author>

    <date month="March" day="28" year="2019" /> 
    <area>Security</area>
    <workgroup>I2NSF Working Group</workgroup>

<!-- [rfced] Please insert any keywords (beyond those that appear in
the title) for use on http://www.rfc-editor.org/rfcsearch.html. -->

<keyword>Internet-Draft</keyword>       

    <abstract>
    <t>
    This document defines a YANG data model for capabilities of various Network Security Functions (NSFs) in Interface to Network Security Functions (I2NSF) framework to cetrally manage capabilities of varios NSFs.
    </t>
    </abstract>
</front>

<middle>

<section title="Introduction"> 
    <t>
    As the industry becomes more sophisticated and network devices (e.g., Internet of Things, Self-driving vehicles, and VoIP/VoLTE smartphones), service providers have a lot of problems mentioned in <xref target="RFC8192" />.
    To resolve these problems, <xref target="i2nsf-nsf-cap-im" /> specifies the information model of the capabilities of Network Security Functions (NSFs).
    </t>
    
    <t>
    This document provides a data model using YANG <xref target="RFC6020" /><xref target="RFC7950" /> that defines the capabilities of NSFs to centrally manage capabilities of those security devices. 
    The security devices can register their own capabilities into Network Operator Management (Mgmt) System (i.e., Security Controller) with this YANG data model through the registration interface <xref target="RFC8329" />.
    With the capabilities of those security devices registered centrally, those security devices can be easily managed <xref target="RFC8329" />.
    This YANG data model is based on the information model for I2NSF NSF capabilities <xref target="i2nsf-nsf-cap-im" />.
    </t>
   
    <t>
    This YANG data model uses an "Event-Condition-Action" (ECA) policy model that is used as the basis for the design of I2NSF Policy described in <xref target="RFC8329" /> and <xref target="i2nsf-nsf-cap-im" />.
    Rules.
    The "ietf-i2nsf-capability" YANG module defined in this document provides the following features:
        <list style="symbols">
        <t>
            Definition for general capabilities of network security functions.
        </t> 
        <t>
            Definition for event capabilities of generic network security function.
        </t>        
        <t>
            Definition for condition capabilities of generic network security function.
        </t>
        <t>
            Definition for condition capabilities of advanced network security function.
        </t>
        <t>
            Definition for action capabilities of generic network security function.
        </t>
        <t>
            Definition for resolution strategy capabilities of generic network security function.
        </t>
        <t>
            Definition for default action capabilities of generic network security function.
        </t>     
        </list>
    </t>
    
</section>

<section title="Requirements Language">
    <t>
    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
    document are to be interpreted as described in <xref target="RFC2119" /><xref target="RFC8174" />.
    </t>
</section>

<section title="Terminology">
    <t>
    This document uses the terminology described in <xref target="i2nsf-terminology"/><xref target="i2nsf-nsf-cap-im" /> <xref target="RFC8431" /><xref target="supa-policy-info-model" />. 
    Especially, the following terms are from <xref target="supa-policy-info-model" />:
    <list style="symbols">
    <t>
    Data Model: A data model is a representation of concepts of
        interest to an environment in a form that is dependent on data
    repository, data definition language, query language,
    implementation language, and protocol.
    </t>
    <t>
    Information Model: An information model is a representation of
    concepts of interest to an environment in a form that is
    independent of data repository, data definition language, query
    language, implementation language, and protocol.
    </t>
    </list>
    </t>
    <section title="Tree Diagrams">
    <t>
    A simplified graphical representation of the data model is used in
this document. The meaning of the symbols in these diagrams <xref target="RFC8340" /> is as
follows:
    <list style="symbols">
    <t> 
        Brackets "[" and "]" enclose list keys.
    </t>
    <t>
        Abbreviations before data node names: "rw" means configuration (read-write) and "ro" state data (read-only).
    </t>
    <t>
        Symbols after data node names: "?" means an optional node and "*"
denotes a "list" and "leaf-list".
    </t>
    <t>
        Parentheses enclose choice and case nodes, and case nodes are also
marked with a colon (":").
    </t>
    <t> 
        Ellipsis ("...") stands for contents of subtrees that are not
shown.
    </t>
    </list>
</t>
    </section>
</section>
<section title="Overview">
        <t>
        This section explains overview how the YANG data model can be used in I2NSF framework described in <xref target="RFC8329" />.
        <xref target="I2NSF-Framework" /> shows capabilities of NSFs in I2NSF Framework.
        As shown in this figure, Developer's Mgmt System can register NSFs with capabilities that the network security device can support.
        To register NSFs in this way, the Developer's Mgmt System utilizes this standardized capabilities YANG data model through registration interface.
        With the capabilities of those network security devices registered centrally, those security devices can be easily managed, which can resolve the a lot of problems described in <xref target="RFC8192" />.
        The following shows use cases.
        </t>
        <t>
        Note <xref target="i2nsf-nsf-yang" /> is used to configure security policy rules of generic network security functions and <xref target="i2nsf-advanced-nsf-dm" /> is used to configure security policy rules of advanced network security functions according to the capabilities of network security devices registed in I2NSF Framework.
        </t>
     <figure anchor="I2NSF-Framework" title="Capabilities of NSFs in I2NSF Framework">
     <artwork><![CDATA[
       +-------------------------------------------------------+
       |  I2NSF User (e.g., Overlay Network Mgmt, Enterprise   |
       |  Network Mgmt, another network domain's mgmt, etc.)   |
       +--------------------+----------------------------------+
                            |
  Consumer-Facing Interface |  
                            |
                            |                 I2NSF
          +-----------------+------------+ Registration  +-------------+
          | Network Operator Mgmt System |  Interface    | Developer's |
          | (i.e., Security Controller)  | < --------- > | Mgmt System |
          +-----------------+------------+               +-------------+
                            |                          New NSF
                            |                          E = {}
  NSF-Facing Interface      |                          C = {IPv4, IPv6} 
                            |                          A = {Allow, Deny}
                            |
       +---------------+----+------------+-----------------+
       |               |                 |                 |
   +---+---+       +---+---+         +---+---+         +---+---+
   | NSF-1 |  ...  | NSF-m |         | NSF-1 |   ...   | NSF-n |  ...
   +-------+       +-------+         +-------+         +-------+
     NSF-1           NSF-m             NSF-1             NSF-n
 E = {}            E = {user}        E = {dev}         E = {time}
 C = {IPv4}        C = {IPv6}        C = {IPv4, IPv6}  C = {IPv4} 
 A = {Allow, Deny} A = {Allow, Deny} A = {Allow, Deny} A = {Allow, Deny}
 
   Developer Mgmt System A            Developer Mgmt System B
        ]]></artwork>
        </figure>       
        <t>
        <list style="symbols">
        <t>     
        If network manager wants to apply security policy rules about blocking malicious users, it is a tremendous burden to apply all of these rules to NSFs one by one.
        This problem can be resolved by managing the capabilities of NSFs. 
        If network manager wants to block malicious users with IPv6, network manager sends the security policy rules about blocking the users to Network Operator Mgmt System using I2NSF user (i.e., a web browser or a software).
        When the Network Operator Mgmt System receives the security policy rules, it automatically sends that security policy rules to appropriate NSFs (i.e., NSF-m in Developer Mgmt System A and NSF-1 in Developer Mgmt System B) which can support the capabilities (i.e., IPv6).
        Therefore, I2NSF User need not consider NSFs where to apply the rules. 
        </t>
        <t>
        If NSFs find the malicious packets, it is a tremendous burden for network manager to apply the rule about blocking the malicious packets to NSFs one by one.
        This problem can be resolved by managing the capabilities of NSFs. 
        If NSFs find the suspicious packets with IPv4, they can ask the Network Operator Mgmt System for information about the suspicious packets with IPv4.
        to alter specific rules and/or configurations.
        When the Network Operator Mgmt System receives information, it inspects the information about the suspicious packets with IPv4. 
        If the suspicious packets are determined to be malicious packets, the Network Operator Mgmt System creates and sends the security policy rule against malicious packets to appropriate NSFs (i.e., NSF-1 in Developer Mgmt System A and NSF-1 and NSF-n in Developer Mgmt System B) which can support the capabilities (i.e., IPv4).
        Therefore, the new security policy rule against malicious packets can be applied to appropriate NSFs without intervention of humans.
        </t>
        </list>
        </t>
</section>

<section  title="YANG Tree Diagram">
    <t>
    This section shows an YANG tree diagram of capabilities for network security functions, as defined in the <xref target="i2nsf-nsf-cap-im" />.
    </t>
    
    <section title="Capabilities of Network Security Function">
    <t>
        This section shows YANG tree diagram for capabilities of network security functions.
    </t>
        <figure anchor="YANG-Tree-Diagram" title="YANG Tree Diagram for Capabilities of Network Security Functions">
            <artwork><![CDATA[
            
module: ietf-i2nsf-capability
  +--rw nsf
     +--rw time-capabilities*                  enumeration
     +--rw event-capabilities
     |  +--rw system-event-capa*   identityref
     |  +--rw system-alarm-capa*   identityref
     +--rw condition-capabilities
     |  +--rw generic-nsf-capabilities
     |  |  +--rw ipv4-capa*   identityref
     |  |  +--rw ipv6-capa*   identityref
     |  |  +--rw tcp-capa*    identityref
     |  |  +--rw udp-capa*    identityref
     |  |  +--rw icmp-capa*   identityref
     |  +--rw advanced-nsf-capabilities
     |  |  +--rw antivirus-capa*    identityref
     |  |  +--rw antiddos-capa*     identityref
     |  |  +--rw ips-capa*          identityref
     |  |  +--rw url-capa*          identityref
     |  |  +--rw voip-volte-capa*   identityref
     |  +--rw context-capabilities*        identityref
     +--rw action-capabilities
     |  +--rw ingress-action-capa*   identityref
     |  +--rw egress-action-capa*    identityref
     |  +--rw log-action-capa*       identityref
     +--rw resolution-strategy-capabilities*   identityref
     +--rw default-action-capabilities*        identityref
     +--rw ipsec-method*                       identityref

        ]]></artwork>
        </figure>
        <t>
            This YANG tree diagram shows capabilities of network security functions.
        </t>
        
        <t>
            The NSF includes NSF capabilities.
            The NSF capabilities include time capabilities, event capabilities, condition capabilities, action capabilities, resolution strategy capabilities, and default action capabilities.
        </t>
        
        <t>
            Time capabilities are used to specify capabilities when to execute the I2NSF policy rule.
            The time capabilities are defined as absolute time and periodic time. 
        </t>
    
        <t> 
            Event capabilities are used to specify capabilities how to trigger the evaluation of the condition clause of the I2NSF Policy Rule.
            The event capabilities are defined as system event and system alarm. 
            The event capability can be extended according to specific vendor condition features.
            The event capability is described in detail in <xref target="i2nsf-nsf-cap-im" />.
        </t>
        
        <t> 
            Condition capabilities are used to specify capabilities of a set of attributes, features, and/or values that are to be compared with a set of known attributes, features, and/or values in order to determine whether or not the set of actions in that (imperative) I2NSF policy rule can be executed or not. 
            The condition capability is classified as condition capabilities of generic network security functions and advanced network security functions.
            The condition capabilities of generic network security functions are defined as IPv4 capability, IPv6 capability, tcp capability, udp capability, and icmp capability.
            The condition capabilities of advanced network security functions are defined as antivirus capability, antiddos capability, ips capability, http capability, and VoIP/VoLTE capability.
            The condition capability can be extended according to specific vendor condition features.
            The condition capability is described in detail in <xref target="i2nsf-nsf-cap-im" />.
        </t>
        
        <t>
            Action capabilities is used to specify capabilities how to control and monitor aspects of flow-based NSFs when the event and condition clauses are satisfied. 
            The action capabilities are defined as ingress action capability, egress action capability, and log action capability.
            The action capability can be extended according to specific vendor action features.
            The action capability is described in detail in <xref target="i2nsf-nsf-cap-im" />.
        </t>
    
        <t> 
            Resolution strategy capabilities are used to specify capabilities how to resolve conflicts that occur between the actions of the same or different policy rules that are matched and contained in this particular NSF.
            The resolution strategy capabilities are defined as First Matching Rule (FMR), Last Matching Rule (LMR), Prioritized Matching Rule (PMR) with Errors (PMRE), and Prioritized Matching Rule with No Errors (PMRN).
            The resolution strategy capability can be extended according to specific vendor action features.
            The resolution strategy capability is described in detail in <xref target="i2nsf-nsf-cap-im" />.
        </t>
        
        <t> 
            Default action capabilities are used to specify capabilities how to execute I2NSF policy rule when no rule matches a packet. 
            The default action capabilities are defined as pass, drop, reject, alert, and mirror. 
            The default action capability can be extended according to specific vendor action features.
            The default action capability is described in detail in <xref target="i2nsf-nsf-cap-im" />.
        </t>
    
        <t> 
            IPsec method capabilities are used to specify capabilities how to support an Internet key exchange for the security communication. 
            The default action capabilities are defined as ike and ikeless. 
            The default action capability can be extended according to specific vendor action features.
            The default action capability is described in detail in <xref target="draft-ietf-i2nsf-sdn-ipsec-flow-protection" />.
        </t>
    </section>
    
</section>

<section title="YANG Data Modules">
  <section title="I2NSF Capability YANG Data Module">
        <t> 
        This section introduces an YANG data module for capabilities of network security functions, as defined in the <xref target="i2nsf-nsf-cap-im" />.
        </t>
            <figure anchor="Capabilities-DM" title="YANG Data Module of I2NSF Capability">
                <artwork><![CDATA[
<CODE BEGINS> file "ietf-i2nsf-capability@2019-03-28.yang"

module ietf-i2nsf-capability {
  yang-version 1.1;
  namespace 
    "urn:ietf:params:xml:ns:yang:ietf-i2nsf-capability";
  prefix
    iicapa;


  organization
    "IETF I2NSF (Interface to Network Security Functions) 
     Working Group";

  contact
    "WG Web: <http://tools.ietf.org/wg/i2nsf>
     WG List: <mailto:i2nsf@ietf.org>

     WG Chair: Adrian Farrel
     <mailto:Adrain@olddog.co.uk>

     WG Chair: Linda Dunbar
     <mailto:Linda.duhbar@huawei.com>

     Editor: Susan Hares
     <mailto:shares@ndzh.com>

     Editor: Jaehoon Paul Jeong
     <mailto:pauljeong@skku.edu>

     Editor: Jinyong Tim Kim
     <mailto:timkim@skku.edu>";
     
  description
    "This module describes a capability model 
    for I2NSF devices.
    
    Copyright (c) 2018 IETF Trust and the persons
    identified as authors of the code.  All rights reserved.

    Redistribution and use in source and binary forms, with or
    without modification, is permitted pursuant to, and subject
    to the license terms contained in, the Simplified BSD License
    set forth in Section 4.c of the IETF Trust's Legal Provisions
    Relating to IETF Documents
    (http://trustee.ietf.org/license-info).

    This version of this YANG module is part of RFC 8341; see
    the RFC itself for full legal notices.";

  revision "2019-03-28"{
    description "Initial revision.";
    reference
      "RFC XXXX: I2NSF Capability YANG Data Model";
  }

  /*
   * Identities
   */
  
  identity event {
    description
      "Base identity for event of policy.";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - Event";
  }
  
  identity system-event-capa {
    base event;
    description 
      "Identity for system event";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }
  
  identity system-alarm-capa {
    base event;
    description 
      "Identity for system alarm";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }
  
  identity access-violation {
    base system-event-capa;
    description
      "Identity for access violation
      among system events";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System event";
  }
  
  identity configuration-change {
    base system-event-capa;
    description 
      "Identity for configuration change
      among system events";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System event";
  }
  
  identity memory-alarm {
    base system-alarm-capa;
    description
      "Identity for memory alarm 
      among system alarms";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }
  
  identity cpu-alarm {
    base system-alarm-capa;
    description
      "Identity for cpu alarm 
      among system alarms";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }

  identity disk-alarm {
    base system-alarm-capa;
    description 
      "Identity for disk alarm 
      among system alarms";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }

  identity hardware-alarm {
    base system-alarm-capa;
    description 
      "Identity for hardware alarm 
      among system alarms";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }

  identity interface-alarm {
    base system-alarm-capa;
    description 
      "Identity for interface alarm 
      among system alarms";
    reference
      "draft-hong-i2nsf-nsf-monitoring-data-model-06
       - System alarm";
  }  
  
  identity condition {
    description
      "Base identity for conditions of policy";
  }
  
  identity context-capa {
    base condition;
    description 
      "Identity for capabilities of context condition";
  }
  
  identity acl-number {
    base context-capa;
    description 
      "Identity for acl number capability
      of context condition";
  }
  
  identity application {
    base context-capa;
    description 
      "Identity for application capability
      of context condition";
  }
  
  identity target {
    base context-capa;
    description 
      "Identity for target capability
      of context condition";
  }
  
  identity user {
    base context-capa;
    description 
      "Identity for user capability
      of context condition";
  }
  
  identity group {
    base context-capa;
    description 
      "Identity for group capability
      of context condition";
  }
  
  identity geography {
    base context-capa;
    description 
      "Identity for geography capability
      of context condition";
  }
  
  identity ipv4-capa {
    base condition;
    description 
      "Identity for capabilities of IPv4 condition";
    reference
      "RFC 791: Internet Protocol";
  }
  
  identity exact-ipv4-header-length {
    base ipv4-capa;
    description 
      "Identity for exact header length capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Header Length";
  }

  identity range-ipv4-header-length {
    base ipv4-capa;
    description 
      "Identity for range header length capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Header Length";
  }
  
  identity ipv4-tos {
    base ipv4-capa;
    description 
      "Identity for type of service capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Type of Service";
  }
  
  identity exact-ipv4-total-length {
    base ipv4-capa;
    description 
      "Identity for exact total length capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Total Length";
  }
  
  identity range-ipv4-total-length {
    base ipv4-capa;
    description 
      "Identity for range total length capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Total Length";
  }
  
  identity ipv4-id {
    base ipv4-capa;
    description 
      "Identity for identification capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Identification";
  }
  
  identity ipv4-fragment-flags {
    base ipv4-capa;
    description 
      "Identity for fragment flags capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Fragmentation  Flags";
  }
  
  identity exact-ipv4-fragment-offset {
    base ipv4-capa;
    description 
      "Identity for exact fragment offset capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Fragmentation  Offset";
  }
  
  identity range-ipv4-fragment-offset {
    base ipv4-capa;
    description 
      "Identity for range fragment offset capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Fragmentation  Offset";
  }
  
  identity exact-ipv4-ttl {
    base ipv4-capa;
    description 
      "Identity for exact time to live capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Time To Live (TTL)";
  }
  
  identity range-ipv4-ttl {
    base ipv4-capa;
    description 
      "Identity for range time to live capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Time To Live (TTL)";
  }
  
  identity ipv4-protocol {
    base ipv4-capa;
    description 
      "Identity for protocol capability
      of IPv4 condition";
    reference
      "RFC 790: Assigned numbers - Assigned Internet 
       Protocol Number
       RFC 791: Internet Protocol - Protocol";
  }
  
  identity exact-ipv4-address {
    base ipv4-capa;
    description
      "Identity for exact address capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Address";
  }
  
  identity range-ipv4-address {
    base ipv4-capa;
    description
      "Identity for range-address capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Address";
  }
  
  identity ipv4-ipopts {
    base ipv4-capa;
    description
      "Identity for option capability
      of IPv4 condition";
    reference
      "RFC 791: Internet Protocol - Options";
  }
  
  identity ipv4-sameip {
    base ipv4-capa;
    description
      "Identity for sameIP capability
      of IPv4 condition";
  }
  
  identity ipv4-geoip {
    base ipv4-capa;
    description
      "Identity for geography capability
      of IPv4 condition";
  }
  
  identity ipv6-capa {
    base condition;
    description
      "Identity for capabilities of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification";
  }
  
  identity ipv6-traffic-class {
    base ipv6-capa;
    description
      "Identity for traffic class capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Traffic Class";
  }
  
  identity exact-ipv6-flow-label {
    base ipv6-capa;
    description
      "Identity for exact flow label capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Flow Label";
  }
  
  identity range-ipv6-flow-label {
    base ipv6-capa;
    description
      "Identity for range flow label capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Flow Label";
  }
  
  identity exact-ipv6-payload-length {
    base ipv6-capa;
    description
      "Identity for exact payload length capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Payload Length";
  }
  
  identity range-ipv6-payload-length {
    base ipv6-capa;
    description
      "Identity for range payload length capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Payload Length";
  }
  
  identity ipv6-next-header {
    base ipv6-capa;
    description
      "Identity for next header capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Next Header";
  }
  
  identity exact-ipv6-hop-limit {
    base ipv6-capa;
    description
      "Identity for exact hop limit capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Hop Limit";
  }
  
  identity range-ipv6-hop-limit {
    base ipv6-capa;
    description
      "Identity for range hop limit capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Hop Limit";
  }
  
  identity exact-ipv6-address {
    base ipv6-capa;
    description
      "Identity for exact address capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Address";
  }
  
  identity range-ipv6-address {
    base ipv6-capa;
    description
      "Identity for range address capability
      of IPv6 condition";
    reference
      "RFC 2460: Internet Protocol, Version 6 (IPv6) 
      Specification - Address";
  }
  
  identity tcp-capa {
    base condition;
    description
      "Identity for capabilities of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol";
  }
  
  identity exact-tcp-port-num {
    base tcp-capa;
    description
      "Identity for exact port number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Port Number";
  }
  
  identity range-tcp-port-num {
    base tcp-capa;
    description
      "Identity for range port number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Port Number";
  }
  
  identity exact-tcp-seq-num {
    base tcp-capa;
    description
      "Identity for exact sequence number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Sequence Number";
  }
  
  identity range-tcp-seq-num {
    base tcp-capa;
    description
      "Identity for range sequence number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Sequence Number";
  }
  
  identity exact-tcp-ack-num {
    base tcp-capa;
    description
      "Identity for exact acknowledgement number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Acknowledgement Number";
  }
  
  identity range-tcp-ack-num {
    base tcp-capa;
    description
      "Identity for range acknowledgement number capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Acknowledgement Number";
  }
  
  identity exact-tcp-window-size {
    base tcp-capa;
    description
      "Identity for exact window size capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Window Size";
  }
  
  identity range-tcp-window-size {
    base tcp-capa;
    description
      "Identity for range window size capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Window Size";
  }

  identity tcp-flags {
    base tcp-capa;
    description
      "Identity for flags capability
      of tcp condition";
    reference
      "RFC 793: Transmission Control Protocol - Flags";
  }
  
  identity udp-capa {
    base condition;
    description
      "Identity for capabilities of udp condition";
    reference
      "RFC 768: User Datagram Protocol";
  }
  
  identity exact-udp-port-num {
    base udp-capa;
    description
      "Identity for exact port number capability
      of udp condition";
    reference
      "RFC 768: User Datagram Protocol - Port Number";
  }
  
  identity range-udp-port-num {
    base udp-capa;
    description
      "Identity for range port number capability
      of udp condition";
    reference
      "RFC 768: User Datagram Protocol - Port Number";
  }
  
  identity exact-udp-total-length {
    base udp-capa;
    description
      "Identity for exact total-length capability
      of udp condition";
    reference
      "RFC 768: User Datagram Protocol - Total Length";
  }
  
  identity range-udp-total-length {
    base udp-capa;
    description
      "Identity for range total-length capability
      of udp condition";
    reference
      "RFC 768: User Datagram Protocol - Total Length";
  }
  
  identity icmp-capa {
    base condition;
    description
      "Identity for capabilities of icmp condition";
    reference
      "RFC 792: Internet Control Message Protocol";
  }
  
  identity icmp-type {
    base icmp-capa;
    description
      "Identity for icmp type capability
      of icmp condition";
    reference
      "RFC 792: Internet Control Message Protocol";
  }
  
  identity url-capa {
    base condition;
    description
      "Identity for capabilities of url condition";
  }
 
  identity pre-defined {
    base url-capa;
    description
      "Identity for pre-defined capabilities of 
       url condition";
  }
  
  identity user-defined {
    base url-capa;
    description
      "Identity for user-defined capabilities of 
       url condition";
  }
 
  identity log-action-capa {
    description
      "Identity for capabilities of log action";
  }  
 
  identity rule-log {
    base log-action-capa;
    description
      "Identity for rule log capability
      of log action";
  }  
  
  identity session-log {
    base log-action-capa;
    description
      "Identity for session log capability
      of log action";
  }  
  
  identity ingress-action-capa {
    description
      "Identity for capabilities of ingress action";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Action";
  }   
  
  identity egress-action-capa {
    description
      "Base identity for egress action";
  }   
  
  identity default-action-capa {
    description
      "Identity for capabilities of default action";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Default action";
  }    
  
  identity pass {
    base ingress-action-capa;
    base egress-action-capa;
    base default-action-capa;
    description
      "Identity for pass";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Actions and 
       default action";
  }
  
  identity drop {
    base ingress-action-capa;
    base egress-action-capa;
    base default-action-capa;
    description
      "Identity for drop";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Actions and 
       default action";
  }

  identity reject {
    base ingress-action-capa;
    base egress-action-capa;
    base default-action-capa;
    description
      "Identity for reject";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Actions and 
       default action";
  }

  identity alert {
    base ingress-action-capa;
    base egress-action-capa;
    base default-action-capa;
    description
      "Identity for alert";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Actions and 
       default action";
  }

  identity mirror {
    base ingress-action-capa;
    base egress-action-capa;
    base default-action-capa;
    description
      "Identity for mirror";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Actions and 
       default action";
  } 
  
  identity invoke-signaling {
    base egress-action-capa;
    description
      "Identity for invoke signaling";
  }
 
  identity tunnel-encapsulation {
    base egress-action-capa;
    description
      "Identity for tunnel encapsulation";
  }
  
  identity forwarding {
    base egress-action-capa;
    description
      "Identity for forwarding";
  }
  
  identity redirection {
    base egress-action-capa;
    description
      "Identity for redirection";
  }
  
  identity resolution-strategy-capa {
    description 
      "Base identity for resolution strategy";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }    
  
  identity fmr {
    base resolution-strategy-capa;
    description 
      "Identity for First Matching Rule (FMR)";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }

  identity lmr {
    base resolution-strategy-capa;
    description 
      "Identity for Last Matching Rule (LMR)";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }
  
  identity pmr {
    base resolution-strategy-capa;
    description 
      "Identity for Prioritized Matching Rule (PMR)";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }
  
  identity pmre {
    base resolution-strategy-capa;
    description 
      "Identity for Prioritized Matching Rule 
      with Errors (PMRE)";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }
  
  identity pmrn {
    base resolution-strategy-capa;
    description 
      "Identity for Prioritized Matching Rule 
      with No Errors (PMRN)";
    reference
      "draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Resolution Strategy";
  }
  
  identity advanced-nsf-capa {
    description 
      "Base identity for advanced 
      network security function capabilities";
    reference
      "RFC 8329: Framework for Interface to Network Security 
       Functions - Differences from ACL Data Models
       draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller";
  }    
  
  identity antivirus-capa {
    base advanced-nsf-capa;
    description
      "Identity for antivirus capabilities";
    reference
      "RFC 8329: Framework for Interface to Network Security 
       Functions - Differences from ACL Data Models
       draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antivirus";
  }  

  identity antiddos-capa {
    base advanced-nsf-capa;
    description
      "Identity for antiddos capabilities";
    reference
      "RFC 8329: Framework for Interface to Network Security 
       Functions - Differences from ACL Data Models
       draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }  
  
  identity ips-capa {
    base advanced-nsf-capa;
    description
      "Identity for IPS capabilities";
    reference
      "RFC 8329: Framework for Interface to Network Security 
       Functions - Differences from ACL Data Models
       draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Intrusion Prevention System";
  }   

  identity voip-volte-capa {
    base advanced-nsf-capa;
    description
      "Identity for VoIP/VoLTE capabilities";
    reference
      "RFC 3261: SIP: Session Initiation Protocol
       RFC 8329: Framework for Interface to Network Security 
       Functions - Differences from ACL Data Models
       draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller";
  }
  
  identity detect {
    base antivirus-capa;
    description
      "Identity for detect capabilities
      of antivirus";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antivirus";
  }
  
  identity exception-application {
    base antivirus-capa;
    description
      "Identity for exception application capabilities
      of antivirus";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antivirus";
  }
  
  identity exception-signature {
    base antivirus-capa;
    description
      "Identity for exception signature capabilities
      of antivirus";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antivirus";
  }
  
  identity whitelists {
    base antivirus-capa;
    description
      "Identity for whitelists capabilities
      of antivirus";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antivirus";
  }

  identity syn-flood-action {
    base antiddos-capa;
    description
      "Identity for syn flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity udp-flood-action {
    base antiddos-capa;
    description
      "Identity for udp flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity http-flood-action {
    base antiddos-capa;
    description
      "Identity for http flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity https-flood-action {
    base antiddos-capa;
    description
      "Identity for https flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity dns-request-flood-action {
    base antiddos-capa;
    description
      "Identity for dns request flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity dns-reply-flood-action {
    base antiddos-capa;
    description
      "Identity for dns reply flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity icmp-flood-action {
    base antiddos-capa;
    description
      "Identity for icmp flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity sip-flood-action {
    base antiddos-capa;
    description
      "Identity for sip flood action capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }
  
  identity detect-mode {
    base antiddos-capa;
    description
      "Identity for detect mode capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }  
  
  identity baseline-learn {
    base antiddos-capa;
    description
      "Identity for baseline learn capabilities
      of antiddos";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Antiddos";
  }  

  identity signature-set {
    base ips-capa;
    description
      "Identity for signature set capabilities
      of IPS";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Intrusion Prevention System";
  }

  identity ips-exception-signature {
    base ips-capa;
    description
      "Identity for ips exception signature capabilities
      of IPS";
    reference
      "draft-dong-i2nsf-asf-config-01: Configuration of 
       Advanced Security Functions with I2NSF Security 
       Controller - Intrusion Prevention System";
  }
  
  identity voice-id {
    base voip-volte-capa;
    description
      "Identity for voice-id capabilities
      of VoIP/VoLTE";
    reference
      "RFC 3261: SIP: Session Initiation Protocol";
  }
  
  identity user-agent {
    base voip-volte-capa;
    description
      "Identity for user agent capabilities
      of VoIP/VoLTE";
    reference
      "RFC 3261: SIP: Session Initiation Protocol";
  }
  
  identity ipsec-capa {
    description 
      "Base identity for an IPsec";
  }
  
  identity ike {
    base ipsec-capa;
    description 
      "Identity for an IKE";
  }
  
  identity ikeless {
    base ipsec-capa;
    description 
      "Identity for an IKEless";
  }
  

  
  /*
   *  Grouping
   */
  
  grouping nsf-capabilities {
    description
      "Capabilities of network security funtion"; 
    reference
      "RFC 8329: Framework for Interface to Network Security 
       Functions - I2NSF Flow Security Policy Structure
       draft-ietf-i2nsf-capability-04: Information Model 
       of NSFs Capabilities - Capability Information Model Design";
  
    leaf-list time-capabilities { 
      type enumeration {
        enum absolute-time {
          description
            "Capabilities of absolute time. 
             If network security function has the absolute time 
             capability, the network security function
             supports rule execution according to absolute time.";
        }
        enum periodic-time {
          description
            "Capabilities of periodic time. 
             If network security function has the periodic time 
             capability, the network security function
             supports rule execution according to periodic time.";
        }
      }
      description
        "This is capabilities for time"; 
    }   
    
    container event-capabilities {
      description
        "Capabilities of events. 
         If network security function has 
         the event capabilities, the network security functions
         supports rule execution according to system event 
         and system alarm.";
       
      reference
        "RFC 8329: Framework for Interface to Network Security 
         Functions - I2NSF Flow Security Policy Structure
         draft-ietf-i2nsf-capability-04: Information Model 
         of NSFs Capabilities - Design Principles and ECA 
         Policy Model Overview
         draft-hong-i2nsf-nsf-monitoring-data-model-06: A YANG 
         Data Model for Monitoring I2NSF Network Security 
         Functions - System Alarm and System Events";
       
      leaf-list system-event-capa {
        type identityref {
          base system-event-capa;
        }
        description
          "Capabilities for a system event";
      }
    
      leaf-list system-alarm-capa {
        type identityref {
          base system-alarm-capa;
        }
        description
          "Capabilities for a system alarm";
      }
    }
    
    container condition-capabilities {
      description 
        "Capabilities of conditions.";     
      
      container generic-nsf-capabilities {
        description 
          "Capabilities of conditions. 
           If a network security function has 
           the condition capabilities, the network security function
           supports rule execution according to conditions of IPv4,
           IPv6, foruth layer, ICMP, and payload.";
        reference
          "RFC  791: Internet Protocol
           RFC  792: Internet Control Message Protocol
           RFC  793: Transmission Control Protocol
           RFC 2460: Internet Protocol, Version 6 (IPv6) 
           Specification - Next Header
           RFC 8329: Framework for Interface to Network Security 
           Functions - I2NSF Flow Security Policy Structure
           draft-ietf-i2nsf-capability-04: Information Model 
           of NSFs Capabilities - Design Principles and ECA Policy 
           Model Overview";
         
        leaf-list ipv4-capa {
          type identityref {
            base ipv4-capa;
          }
          description
            "Capabilities for an IPv4 packet";
          reference
            "RFC 791: Internet Protocol";
        }
      
        leaf-list ipv6-capa {
          type identityref {
            base ipv6-capa;
          }
          description
            "Capabilities for an IPv6 packet";
          reference
            "RFC 2460: Internet Protocol, Version 6 (IPv6) 
             Specification - Next Header";
        }
      
        leaf-list tcp-capa {
          type identityref {
            base tcp-capa;
          }
          description
            "Capabilities for a tcp packet";
          reference
            "RFC 793: Transmission Control Protocol";
        }
      
        leaf-list udp-capa {
          type identityref {
            base udp-capa;
          }
          description
            "Capabilities for an udp packet";
          reference
            "RFC 768: User Datagram Protocol";
        }
      
        leaf-list icmp-capa {
          type identityref {
            base icmp-capa;
          }
          description
            "Capabilities for an ICMP packet";
          reference
            "RFC 2460: Internet Protocol, Version 6 (IPv6) ";
        }      
      }
    
      container advanced-nsf-capabilities {
        description 
          "Capabilities of advanced network security functions, 
           such as anti virus, anti DDoS, IPS, and VoIP/VoLTE.";
        reference
          "RFC 8329: Framework for Interface to Network Security 
           Functions - Differences from ACL Data Models
           draft-dong-i2nsf-asf-config-01: Configuration of 
           Advanced Security Functions with I2NSF Security 
           Controller";
           
        leaf-list antivirus-capa {
          type identityref {
            base antivirus-capa;
          }
          description
            "Capabilities for an antivirus";
          reference
            "draft-dong-i2nsf-asf-config-01: Configuration of 
             Advanced Security Functions with I2NSF Security 
             Controller";
        }
        
        leaf-list antiddos-capa {
          type identityref {
            base antiddos-capa;
          }
          description
            "Capabilities for an antiddos";
          reference
            "draft-dong-i2nsf-asf-config-01: Configuration of 
             Advanced Security Functions with I2NSF Security 
             Controller";
        }
        
        leaf-list ips-capa {
          type identityref {
            base ips-capa;
          }
          description
            "Capabilities for an ips";
          reference
            "draft-dong-i2nsf-asf-config-01: Configuration of 
             Advanced Security Functions with I2NSF Security 
             Controller";
        }
      
        leaf-list url-capa {
          type identityref {
            base url-capa;
          }
          description
            "Capabilities for a url category";
          reference
            "draft-dong-i2nsf-asf-config-01: Configuration of 
             Advanced Security Functions with I2NSF Security 
             Controller";
        }
        
        leaf-list voip-volte-capa {
          type identityref {
            base voip-volte-capa;
         }
          description
            "Capabilities for a voip and volte";
          reference
            "draft-dong-i2nsf-asf-config-01: Configuration of 
             Advanced Security Functions with I2NSF Security 
             Controller";
        }    
      }
      
      leaf-list context-capabilities {
        type identityref {
          base context-capa;
        }
        description
          "Capabilities for a context security";
      } 
      
    }  
    container action-capabilities {     
      description 
        "Capabilities of actions. 
         If network security function has 
         the action capabilities, the network security function
         supports rule execution according to actions.";
       
      leaf-list ingress-action-capa {
        type identityref {
          base ingress-action-capa;
        }
        description
          "Capabilities for an action";
      }
    
      leaf-list egress-action-capa {
        type identityref {
          base egress-action-capa;
        }
        description
          "Capabilities for an egress action";
      }
    
      leaf-list log-action-capa {
        type identityref {
          base log-action-capa;
        }
        description
          "Capabilities for a log action";
      }
    } 
    
    leaf-list resolution-strategy-capabilities {
      type identityref {
        base resolution-strategy-capa;
      }
      description 
        "Capabilities for a resolution strategy.
        The resolution strategies can be used to
        specify how to resolve conflicts that occur between 
        the actions of the same or different policy rules that 
        are matched and contained in this particular NSF"; 
      reference
        "draft-ietf-i2nsf-capability-04: Information Model 
         of NSFs Capabilities - Resolution strategy";
    }
    
    leaf-list default-action-capabilities {
      type identityref {
        base default-action-capa;
      }
      description
        "Capabilities for a default action.
         A default action is used to execute I2NSF policy rule 
         when no rule matches a packet. The default action is 
         defined as pass, drop, reject, alert, and mirror.";
      reference
        "draft-ietf-i2nsf-capability-04: Information Model 
         of NSFs Capabilities - Default action";
    }
    
    leaf-list ipsec-method {
      type identityref {
        base ipsec-capa;
      }
      description
        "Capabilities for an IPsec method";
      reference
        " draft-ietf-i2nsf-sdn-ipsec-flow-protection-04";
    }
  }  
  
  
  /*
   * Data nodes
   */
  
  container nsf {
    description
      "The list of capabilities of 
       network security function";
    uses nsf-capabilities;
  }
}

<CODE ENDS>
            ]]></artwork>
        </figure>
  </section>
  

</section>

<section anchor="iana-considerations" title="IANA Considerations">
    <t>
    This document requests IANA to register the following URI in the "IETF XML Registry" [RFC3688]:
    </t>
   
    <t>
      <list style="empty">
        <t>
            URI: urn:ietf:params:xml:ns:yang:ietf-i2nsf-capability
        </t>
        <t>
            Registrant Contact: The IESG.
        </t>
        <t>
            XML: N/A; the requested URI is an XML namespace.
        </t>    
      </list>
    </t>
 
   <t>
   This document requests IANA to register the following YANG module in the "YANG Module Names" registry [RFC7950].
   </t>
   
    <t>
      <list style="empty">
        <t>
            name: ietf-i2nsf-capability
        </t>
        <t>
            namespace: urn:ietf:params:xml:ns:yang:ietf-i2nsf-capability
        </t>
        <t>
            prefix: iicapa
        </t>
        <t>
            reference: RFC XXXX
        </t>    
      </list>
    </t> 

</section>

<section anchor="security-considerations" title="Security Considerations">
    <t> 
    The YANG module specified in this document defines a data schema designed to be accessed through network management protocols such as NETCONF <xref target = "RFC6241" /> or RESTCONF <xref target = "RFC8040" />. 
    The lowest NETCONF layer is the secure transport layer, and the required transport secure transport is Secure Shell (SSH) <xref target = "RFC6242" />.
    The lowest RESTCONF layer is HTTPS, and the required transport secure transport is TLS <xref target = "RFC8446" />.
    </t>
    <t>
    The NETCONF access control model <xref target = "RFC8341" /> provides a means of restricting access to specific NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.
    </t>
</section>

<!--
<section title="IANA Considerations">
    <t>
    The IANA needs to assigne a new IPv6 Neighbor Discovery Option type
    for the DNSSL option defined in this document.
    </t>    
</section>

<section title="Acknowledgements">
    <t>
    This document has greatly benefited from inputs by Robert Hinden,
    Dan Wing, and Brian Haberman.
    The authors sincerely appreciate their contributions.
    </t>
</section>
-->

</middle>

<back>

<references title="Normative References">

    <reference anchor="RFC2119">
        <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" />
            <date month="March" year="1997" />
        </front>
        <seriesInfo name="BCP" value="14" />
        <seriesInfo name="RFC" value="2119" />
    </reference>  
    
    <reference anchor="RFC6020">
        <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author initials="M." surname="Bjorklund" />
            <date month="October" year="2010" />
        </front>
        <seriesInfo name="RFC" value="6020" />
    </reference>

    <?rfc include="reference.RFC.6087"?>
    
    <?rfc include="reference.RFC.6241"?>
    
    <?rfc include="reference.RFC.6242"?> 
    
    <?rfc include="reference.RFC.6991"?>
    
    <reference anchor="RFC7950">
        <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author initials="M." surname="Bjorklund" />
            <date month="August" year="2016" />
        </front>
        <seriesInfo name="RFC" value="7950" />
    </reference>

    <?rfc include="reference.RFC.8040"?>
    
    <?rfc include="reference.RFC.8174"?>
        
    <reference anchor="RFC8192">
        <front>
            <title>Interface to Network Security Functions (I2NSF): Problem Statement and Use Cases</title>
            <author initials="S." surname="Hares"/>
            <author initials="D." surname="Lopez"/>
            <author initials="M." surname="Zarny"/>
            <author initials="C." surname="Jacquenet"/>
            <author initials="R." surname="Kumar"/>
            <author initials="J." surname="Jeong"/>
            <date month="July" year="2017" />
        </front>
        <seriesInfo name="RFC" value="8192" />
    </reference> 

    <reference anchor="RFC8329">
        <front>
              <title>Framework for Interface to Network Security Functions</title>
              <author initials="D." surname="Lopez"/>
              <author initials="E." surname="Lopez"/>
              <author initials="L." surname="Dunbar"/>
              <author initials="J." surname="Strassner"/>
              <author initials="R." surname="Kumar"/>
              <date month="February" year="2018" />
          </front>
          <seriesInfo name="RFC" value="8329" />
    </reference> 
    
    <?rfc include="reference.RFC.8340"?>
    
    <?rfc include="reference.RFC.8341"?>
    
      <reference anchor="RFC8431">
          <front>
          <title>A YANG Data Model for Routing Information Base (RIB)</title>
          <author initials="L." surname="Wang"/>
          <author initials="M." surname="Chen"/>
          <author initials="A." surname="Dass"/>
          <author initials="H." surname="Ananthakrishnan"/>
          <author initials="S." surname="Kini"/>
          <author initials="N." surname="Bahadur"/>
              <date month="September" year="2018" />
          </front>
      <seriesInfo name="RFC" value="RFC8431" />
      </reference> 
    
    <?rfc include="reference.RFC.8446"?>
    
</references>
    
<references title="Informative References">

    <reference anchor="i2nsf-nsf-cap-im">
        <front>
          <title>Information Model of NSFs Capabilities</title>
          <author initials="L." surname="Xia"/>
          <author initials="J." surname="Strassner"/>
          <author initials="C." surname="Basile"/>
          <author initials="D." surname="Lopez"/>
            <date month="October" year="2018" />
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-i2nsf-capability-04" />
    </reference> 

    <reference anchor="i2nsf-terminology">
        <front>
            <title>Interface to Network Security Functions (I2NSF) Terminology</title>
        <author initials="S." surname="Hares"/>
        <author initials="J." surname="Strassner"/>
        <author initials="D." surname="Lopez"/>
        <author initials="L." surname="Xia"/>
        <author initials="H." surname="Birkholz"/>
            <date month="January" year="2019" />
        </front>
    <seriesInfo name="Internet-Draft" value="draft-ietf-i2nsf-terminology-07" />
    </reference> 

      <reference anchor="i2nsf-advanced-nsf-dm">
          <front>
              <title>Configuration of Advanced Security Functions with I2NSF Security Controller</title>
          <author initials="W." surname="Pan"/>
          <author initials="L." surname="Xia"/>
              <date month="October" year="2018" />
          </front>
      <seriesInfo name="Internet-Draft" value="draft-dong-i2nsf-asf-config-01" />
      </reference> 

    <reference anchor="supa-policy-info-model">
        <front>
            <title>Generic Policy Information Model for 
              Simplified Use of Policy Abstractions (SUPA) </title>
        <author initials="J." surname="Strassner"/>
        <author initials="J." surname="Halpern"/>
        <author initials="S." surname="Meer"/>
            <date month="May" year="2017" />
        </front>
    <seriesInfo name="Internet-Draft" value="draft-ietf-supa-generic-policy-info-model-03" />
    </reference>       
    
    <reference anchor="i2nsf-nsf-yang">
        <front>
        <title>I2NSF Network Security Function-Facing Interface YANG Data Model</title>
        <author initials="J." surname="Kim"/>
        <author initials="J." surname="Jeong"/>
        <author initials="J." surname="Park"/>
        <author initials="S." surname="Hares"/>
        <author initials="Q." surname="Lin"/>
        <date month="March" year="2019" />
        </front>
    <seriesInfo name="Internet-Draft" value="draft-ietf-i2nsf-nsf-facing-interface-dm-04" />
    </reference> 
    
    <reference anchor="draft-ietf-i2nsf-sdn-ipsec-flow-protection">
        <front>
        <title>Software-Defined Networking (SDN)-based IPsec Flow Protection</title>
        <author initials="R." surname="Marin-Lopez"/>
        <author initials="G." surname="Lopez-Millan"/>
        <author initials="F." surname="Pereniguez-Garcia"/>
        <date month="March" year="2019" />
        </front>
    <seriesInfo name="Internet-Draft" value="draft-ietf-i2nsf-sdn-ipsec-flow-protection-04" />
    </reference>       
</references>
  
<section title="Changes from draft-ietf-i2nsf-capability-data-model-03">   
      <t>
      The following changes are made from draft-ietf-i2nsf-capability-data-model-03:

        <list style="symbols">      
        
        <t>
        We added a leaf-list for IPsec method capabilities (e.g., ike and ikeless).
        </t> 
        
        <t>
        We changed http capa fields to url category capa fields.
        </t>
        
        <t>
        We added context capa fields (e.g., acl number, application, target, users, group, and geography).
        </t>
        
      </list>
      </t>
</section> 

<section title="Acknowledgments">
        <t>      
    This work was supported by Institute for Information &amp; communications
    Technology Promotion (IITP) grant funded by the Korea government (MSIP)
    (No.R-20160222-002755, Cloud based Security Intelligence Technology
    Development for the Customized Security Service Provisioning).
        </t>   
</section>

<section title="Contributors">
        <t>      
       This document is made by the group effort of I2NSF working group.
       Many people actively contributed to this document.
       The following are considered co-authors:
        <list style="symbols">
        <t> Hyoungshick Kim (Sungkyunkwan University) </t>
        <t> Daeyoung Hyun (Sungkyunkwan University) </t>
        <t> Dongjin Hong (Sungkyunkwan University) </t>   
        <t> Liang Xia (Huawei) </t>   
        <t> Jung-Soo Park (ETRI) </t>       
        <t> Tae-Jin Ahn (Korea Telecom) </t> 
        <t> Se-Hui Lee (Korea Telecom) </t> 
        </list>
        </t>
</section>

</back>

<!-- <vspace blankLines="100"/> -->
<!-- page break to put addresses onto one page-->




</rfc>
