Difference: DhcpTutorial (3 vs. 4)

Revision 42008-11-04 - MartinBjoerklund

Line: 1 to 1
 

Introduction

In this tutorial, we will introduce many YANG concepts by developing a

Line: 262 to 262
 For example, the default-lease-time must never be larger than the max-lease-time.
Changed:
<
<
YANG supports adding formal integrity contraints with the must statement. As an example, we can add a must constaint to the
>
>
YANG supports adding formal integrity constraints with the must statement. As an example, we can add a must constraint to the
 default-lease-time:

    leaf default-lease-time {
      type uint32;
      units seconds;

Changed:
<
<
must '$this <= ../max-lease-time' {
>
>
must 'current() <= ../max-lease-time' {
  error-message "The default-lease-time must be less than max-lease-time"; }
Line: 351 to 351
  leaf default-lease-time { type uint32; units seconds;
Changed:
<
<
must '$this <= ../max-lease-time' {
>
>
must 'current() <= ../max-lease-time' {
  error-message "The default-lease-time must be less than max-lease-time"; }
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback