SelfResolutionWhenLeafrefDoesNotReferToLeafOrLeafList.yang 493 Bytes
module ietf-network {
    yang-version 1;
    namespace "urn:ietf:params:xml:ns:yang:ietf-network";
    prefix nd;
    container networks {
        description
        "Serves as top-level container for a list of networks.";
        leaf network-id {
            type status;
            description
            "Identifies a network.";
        }
    }
    typedef status {
        type uint8;
    }
    leaf network-ref {
        type leafref {
            path "/networks";
        }
    }
}