Subject: [i2rs] draft-clemm-i2rs-yang-network-topo-00: router-type for ospf

From: "Yi Yang (yiya)" <[email-masked]>
Date: Tue, 25 Feb 2014 02:56:34 +0000

In the OSPF data model, router-type is specified as choice, which is
inconsistent to RFC2328, which specifies that an ASBR could be an internal
router (or ABR) simultaneously. In addition, a missing router-type is
backbone router. One way to fix this is as following:

container ospf-node-attributes {
    container router-type {
        leaf abr {
            type empty;
        }
        leaf asbr {
            type empty;
        }
        leaf internal {
            must "boolean(../abr)='false'"
                // an internal router will never be abr
            type empty;
        }
        leaf backbone {
            type empty;
        }
        ...

Yi