Re: [Rtg-yang-coord] routing-cfg-18 schema

"Yingzhen Qu (yiqu)" <yiqu@cisco.com> Wed, 15 April 2015 17:38 UTC

Return-Path: <yiqu@cisco.com>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4FF651B2F1A for <rtg-yang-coord@ietfa.amsl.com>; Wed, 15 Apr 2015 10:38:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.911
X-Spam-Level:
X-Spam-Status: No, score=-10.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_210=0.6, J_CHICKENPOX_22=0.6, J_CHICKENPOX_25=0.6, J_CHICKENPOX_26=0.6, J_CHICKENPOX_27=0.6, J_CHICKENPOX_28=0.6, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DDo5lzEVZ7Td for <rtg-yang-coord@ietfa.amsl.com>; Wed, 15 Apr 2015 10:38:26 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E72FD1B2F18 for <Rtg-yang-coord@ietf.org>; Wed, 15 Apr 2015 10:38:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=13302; q=dns/txt; s=iport; t=1429119506; x=1430329106; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=u3cLx5Jq224U0qrrvH9HzJqzq1KOB4mswsHs0kWYyPM=; b=E5Z5e6Qx9iFGxIo1NFTlhZ2Mfv8yY7HYeG0FzovBU7iscuP2X19vyidb 57+MA/bWMWg/kZ4mat5r7kvoiwxz3O/m41Tl0Eo7npjRBFOcUnwys/4q0 smlgtZA6kk1F3TqBCBWV7TpkrH652Avka7z/wssdJJ+NTgy6l0Y8t2Ff2 k=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AUBQCpoC5V/5BdJa1cgwxSXAXHOAqGAwKBO0wBAQEBAQF+hCABAQEEAQEBJBM0FwQCAQgRBAEBCxQJBycLFAkIAgQBEgiIIg3EXgEBAQEBAQEBAQEBAQEBAQEBAQEBARMEiyuEJCc4BoMRgRYFkRafESKDb2+BA0F/AQEB
X-IronPort-AV: E=Sophos;i="5.11,582,1422921600"; d="scan'208";a="412470705"
Received: from rcdn-core-8.cisco.com ([173.37.93.144]) by rcdn-iport-2.cisco.com with ESMTP; 15 Apr 2015 17:38:25 +0000
Received: from xhc-rcd-x07.cisco.com (xhc-rcd-x07.cisco.com [173.37.183.81]) by rcdn-core-8.cisco.com (8.14.5/8.14.5) with ESMTP id t3FHcOeL029858 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 15 Apr 2015 17:38:24 GMT
Received: from xmb-aln-x14.cisco.com ([169.254.8.203]) by xhc-rcd-x07.cisco.com ([173.37.183.81]) with mapi id 14.03.0195.001; Wed, 15 Apr 2015 12:38:24 -0500
From: "Yingzhen Qu (yiqu)" <yiqu@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>, "Rtg-yang-coord@ietf.org" <Rtg-yang-coord@ietf.org>
Thread-Topic: [Rtg-yang-coord] routing-cfg-18 schema
Thread-Index: AQHQd1Nz/iLOjbjbB0qGnplow4HBY51OVdyA
Date: Wed, 15 Apr 2015 17:38:24 +0000
Message-ID: <8E4CC9BD3260BF429FDE8D9A3AC24FC01653F5F5@xmb-aln-x14.cisco.com>
References: <77138CBB-4868-48EE-B0AF-FC37810011BB@nic.cz>
In-Reply-To: <77138CBB-4868-48EE-B0AF-FC37810011BB@nic.cz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [128.107.163.77]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/wjvrm-m-hzljva4PHkujumzfISc>
Subject: Re: [Rtg-yang-coord] routing-cfg-18 schema
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "\"List to discuss coordination between the Routing related YANG models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Apr 2015 17:38:28 -0000

Hi Lada,

It seems to me that there are two mtu configurations defined under ipv6 interface, what's the difference?

+--rw ip:mtu?                            uint32
+--rw v6ur:link-mtu?               uint32

Thanks,
Yingzhen

-----Original Message-----
From: Rtg-yang-coord [mailto:rtg-yang-coord-bounces@ietf.org] On Behalf Of Ladislav Lhotka
Sent: Wednesday, April 15, 2015 1:09 AM
To: Rtg-yang-coord@ietf.org
Subject: [Rtg-yang-coord] routing-cfg-18 schema

Hi,

the editors of draft-ietf-netmod-routing-cfg implemented all changes to the data model that were agreed upon in Dallas. The resulting schema of the trees affected by the changes (interface, interface-state, routing and routing-state) is shown below. Unless somebody has objections, we will submit it in this form as revision -18 on Friday.

Thanks,

Acee and Lada

============================

module: ietf-interfaces
   +--rw interfaces
   |  +--rw interface* [name]
   |     +--rw name           string
   |     +--rw description?   string
   |     +--rw type           identityref
   |     +--rw enabled?       boolean
   |     +--rw ip:ipv4!
   |     |  +--rw ip:enabled?      boolean
   |     |  +--rw ip:forwarding?   boolean
   |     |  +--rw ip:mtu?          uint16
   |     |  +--rw ip:address* [ip]
   |     |  |  +--rw ip:ip               inet:ipv4-address-no-zone
   |     |  |  +--rw (subnet)
   |     |  |     +--:(prefix-length)
   |     |  |        +--rw ip:prefix-length?   uint8
   |     |  +--rw ip:neighbor* [ip]
   |     |     +--rw ip:ip                    inet:ipv4-address-no-zone
   |     |     +--rw ip:link-layer-address    yang:phys-address
   |     +--rw ip:ipv6!
   |        +--rw ip:enabled?                        boolean
   |        +--rw ip:forwarding?                     boolean
   |        +--rw ip:mtu?                            uint32
   |        +--rw ip:address* [ip]
   |        |  +--rw ip:ip               inet:ipv6-address-no-zone
   |        |  +--rw ip:prefix-length    uint8
   |        +--rw ip:neighbor* [ip]
   |        |  +--rw ip:ip                    inet:ipv6-address-no-zone
   |        |  +--rw ip:link-layer-address    yang:phys-address
   |        +--rw ip:dup-addr-detect-transmits?      uint32
   |        +--rw ip:autoconf
   |        |  +--rw ip:create-global-addresses?   boolean
   |        +--rw v6ur:ipv6-router-advertisements
   |           +--rw v6ur:send-advertisements?    boolean
   |           +--rw v6ur:max-rtr-adv-interval?   uint16
   |           +--rw v6ur:min-rtr-adv-interval?   uint16
   |           +--rw v6ur:managed-flag?           boolean
   |           +--rw v6ur:other-config-flag?      boolean
   |           +--rw v6ur:link-mtu?               uint32
   |           +--rw v6ur:reachable-time?         uint32
   |           +--rw v6ur:retrans-timer?          uint32
   |           +--rw v6ur:cur-hop-limit?          uint8
   |           +--rw v6ur:default-lifetime?       uint16
   |           +--rw v6ur:prefix-list
   |              +--rw v6ur:prefix* [prefix-spec]
   |                 +--rw v6ur:prefix-spec           inet:ipv6-prefix
   |                 +--rw (control-adv-prefixes)?
   |                    +--:(no-advertise)
   |                    |  +--rw v6ur:no-advertise?         empty
   |                    +--:(advertise)
   |                       +--rw v6ur:valid-lifetime?       uint32
   |                       +--rw v6ur:on-link-flag?         boolean
   |                       +--rw v6ur:preferred-lifetime?   uint32
   |                       +--rw v6ur:autonomous-flag?      boolean
   +--ro interfaces-state
      +--ro interface* [name]
         +--ro name                   string
         +--ro type                   identityref
         +--ro oper-status            enumeration
         +--ro last-change?           yang:date-and-time
         +--ro phys-address?          yang:phys-address
         +--ro higher-layer-if*       interface-state-ref
         +--ro lower-layer-if*        interface-state-ref
         +--ro speed?                 yang:gauge64
         +--ro statistics
         |  +--ro discontinuity-time    yang:date-and-time
         |  +--ro in-octets?            yang:counter64
         |  +--ro in-unicast-pkts?      yang:counter64
         |  +--ro in-broadcast-pkts?    yang:counter64
         |  +--ro in-multicast-pkts?    yang:counter64
         |  +--ro in-discards?          yang:counter32
         |  +--ro in-errors?            yang:counter32
         |  +--ro in-unknown-protos?    yang:counter32
         |  +--ro out-octets?           yang:counter64
         |  +--ro out-unicast-pkts?     yang:counter64
         |  +--ro out-broadcast-pkts?   yang:counter64
         |  +--ro out-multicast-pkts?   yang:counter64
         |  +--ro out-discards?         yang:counter32
         |  +--ro out-errors?           yang:counter32
         +--ro ip:ipv4!
         |  +--ro ip:forwarding?   boolean
         |  +--ro ip:mtu?          uint16
         |  +--ro ip:address* [ip]
         |  |  +--ro ip:ip               inet:ipv4-address-no-zone
         |  |  +--ro (subnet)?
         |  |  |  +--:(prefix-length)
         |  |  |     +--ro ip:prefix-length?   uint8
         |  |  +--ro ip:origin?          ip-address-origin
         |  +--ro ip:neighbor* [ip]
         |     +--ro ip:ip                    inet:ipv4-address-no-zone
         |     +--ro ip:link-layer-address?   yang:phys-address
         |     +--ro ip:origin?               neighbor-origin
         +--ro ip:ipv6!
         |  +--ro ip:forwarding?                     boolean
         |  +--ro ip:mtu?                            uint32
         |  +--ro ip:address* [ip]
         |  |  +--ro ip:ip               inet:ipv6-address-no-zone
         |  |  +--ro ip:prefix-length    uint8
         |  |  +--ro ip:origin?          ip-address-origin
         |  |  +--ro ip:status?          enumeration
         |  +--ro ip:neighbor* [ip]
         |  |  +--ro ip:ip                    inet:ipv6-address-no-zone
         |  |  +--ro ip:link-layer-address?   yang:phys-address
         |  |  +--ro ip:origin?               neighbor-origin
         |  |  +--ro ip:is-router?            empty
         |  |  +--ro ip:state?                enumeration
         |  +--ro v6ur:ipv6-router-advertisements
         |     +--ro v6ur:send-advertisements?    boolean
         |     +--ro v6ur:max-rtr-adv-interval?   uint16
         |     +--ro v6ur:min-rtr-adv-interval?   uint16
         |     +--ro v6ur:managed-flag?           boolean
         |     +--ro v6ur:other-config-flag?      boolean
         |     +--ro v6ur:link-mtu?               uint32
         |     +--ro v6ur:reachable-time?         uint32
         |     +--ro v6ur:retrans-timer?          uint32
         |     +--ro v6ur:cur-hop-limit?          uint8
         |     +--ro v6ur:default-lifetime?       uint16
         |     +--ro v6ur:prefix-list
         |        +--ro v6ur:prefix* [prefix-spec]
         |           +--ro v6ur:prefix-spec           inet:ipv6-prefix
         |           +--ro v6ur:valid-lifetime?       uint32
         |           +--ro v6ur:on-link-flag?         boolean
         |           +--ro v6ur:preferred-lifetime?   uint32
         |           +--ro v6ur:autonomous-flag?      boolean
         +--ro rt:routing-instance?   routing-instance-state-ref
module: ietf-routing
   +--ro routing-state
   |  +--ro routing-instance* [name]
   |     +--ro name                 string
   |     +--ro type?                identityref
   |     +--ro interfaces
   |     |  +--ro interface*   if:interface-state-ref
   |     +--ro routing-protocols
   |     |  +--ro routing-protocol* [type name]
   |     |     +--ro type                identityref
   |     |     +--ro name                string
   |     |     +--ro route-preference    route-preference
   |     +--ro ribs
   |        +--ro rib* [name]
   |           +--ro name              string
   |           +--ro address-family    identityref
   |           +--ro default-rib?      boolean {multiple-ribs}?
   |           +--ro routes
   |              +--ro route*
   |                 +--ro route-preference?          route-preference
   |                 +--ro next-hop
   |                 |  +--ro (next-hop-options)
   |                 |     +--:(simple-next-hop)
   |                 |     |  +--ro outgoing-interface?      -> /routing-state/routing-instance/interfaces/interface
   |                 |     |  +--ro v6ur:next-hop-address?   inet:ipv6-address
   |                 |     |  +--ro v4ur:next-hop-address?   inet:ipv4-address
   |                 |     +--:(special-next-hop)
   |                 |        +--ro special-next-hop?        enumeration
   |                 +--ro source-protocol            identityref
   |                 +--ro active?                    empty
   |                 +--ro last-updated?              yang:date-and-time
   |                 +--ro v6ur:destination-prefix?   inet:ipv6-prefix
   |                 +--ro v4ur:destination-prefix?   inet:ipv4-prefix
   +--rw routing
      +--rw routing-instance* [name]
         +--rw name                 string
         +--rw type?                identityref
         +--rw enabled?             boolean
         +--rw router-id?           yang:dotted-quad
         +--rw description?         string
         +--rw interfaces
         |  +--rw interface*   if:interface-ref
         +--rw routing-protocols
         |  +--rw routing-protocol* [type name]
         |     +--rw type                identityref
         |     +--rw name                string
         |     +--rw description?        string
         |     +--rw enabled?            boolean
         |     +--rw route-preference?   route-preference
         |     +--rw static-routes
         |        +--rw v6ur:ipv6
         |        |  +--rw v6ur:route* [destination-prefix]
         |        |     +--rw v6ur:destination-prefix    inet:ipv6-prefix
         |        |     +--rw v6ur:description?          string
         |        |     +--rw v6ur:next-hop
         |        |        +--rw (next-hop-options)
         |        |           +--:(simple-next-hop)
         |        |           |  +--rw v6ur:outgoing-interface?   -> /rt:routing/routing-instance/interfaces/interface
         |        |           +--:(special-next-hop)
         |        |           |  +--rw v6ur:special-next-hop?     enumeration
         |        |           +--:(next-hop-address)
         |        |              +--rw v6ur:next-hop-address?     inet:ipv6-address
         |        +--rw v4ur:ipv4
         |           +--rw v4ur:route* [destination-prefix]
         |              +--rw v4ur:destination-prefix    inet:ipv4-prefix
         |              +--rw v4ur:description?          string
         |              +--rw v4ur:next-hop
         |                 +--rw (next-hop-options)
         |                    +--:(simple-next-hop)
         |                    |  +--rw v4ur:outgoing-interface?   -> /rt:routing/routing-instance/interfaces/interface
         |                    +--:(special-next-hop)
         |                    |  +--rw v4ur:special-next-hop?     enumeration
         |                    +--:(next-hop-address)
         |                       +--rw v4ur:next-hop-address?     inet:ipv4-address
         +--rw ribs
            +--rw rib* [name]
               +--rw name              string
               +--rw address-family    identityref
               +--rw description?      string
               +--rw default-rib?      boolean {multiple-ribs}?
rpcs:
   +---x fib-route    
      +---w input     
      |  +---w routing-instance-name    routing-instance-state-ref
      |  +---w destination-address
      |     +---w address-family    identityref
      |     +---w v6ur:address?     inet:ipv6-address
      |     +---w v4ur:address?     inet:ipv4-address
      +--ro output    
         +--ro route
            +--ro address-family             identityref
            +--ro next-hop
            |  +--ro (next-hop-options)
            |     +--:(simple-next-hop)
            |     |  +--ro outgoing-interface?      -> /routing-state/routing-instance/interfaces/interface
            |     |  +--ro v6ur:next-hop-address?   inet:ipv6-address
            |     |  +--ro v4ur:next-hop-address?   inet:ipv4-address
            |     +--:(special-next-hop)
            |        +--ro special-next-hop?        enumeration
            +--ro source-protocol            identityref
            +--ro active?                    empty
            +--ro last-updated?              yang:date-and-time
            +--ro v6ur:destination-prefix?   inet:ipv6-prefix
            +--ro v4ur:destination-prefix?   inet:ipv4-prefix


--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C




_______________________________________________
Rtg-yang-coord mailing list
Rtg-yang-coord@ietf.org
https://www.ietf.org/mailman/listinfo/rtg-yang-coord