Subject: [netmod] order of subelements

From: Ladislav Lhotka <[email-masked]>
Date: Mon, 07 Jul 2008 12:23:03 +0200

Hi,

XML encoding rules for container (section 7.5.6) specify:
"The container's child nodes are encoded as subelements to the container
element, in the same order as they are defined within the container
statement."

The DHCP tutorial seems to violate this:

The data model says

container dhcp {
    description
      "configuration and operational parameters for a DHCP server.";

    leaf max-lease-time {
      type uint32;
      units seconds;
      default 7200;
    }

    leaf default-lease-time {
      type uint32;
      units seconds;
      must '$this <= ../max-lease-time' {
        error-message
          "The default-lease-time must be less than max-lease-time";
      }
      default 600;
    }
    ....
}

but the XML snippet has

<dhcp xmlns="http://example.com/ns/dhcp">
    <default-lease-time>600</default-lease-time>
    <max-lease-time>7200</max-lease-time>

Perhaps the restriction on order can be removed?

Lada

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C

_______________________________________________
netmod mailing list
[email-masked]
https://www.ietf.org/mailman/listinfo/netmod