File: test-deviation-add-must.yang

package info (click to toggle)
yuma123 2.14-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,436 kB
  • sloc: ansic: 185,144; cpp: 10,968; python: 7,990; sh: 2,676; makefile: 1,175; xml: 807; exp: 776; perl: 70
file content (25 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module test-deviation-add-must {

  namespace "http://yuma123.org/ns/test-deviation-add-must";
  prefix test-dam;
  
  import ietf-interfaces { prefix if; }

  organization  "yuma123";
  
  description 
    "Test module for deviation-add-must";
  
  revision 2017-03-19 {
    description
      "1.st version";
  }

  deviation /if:interfaces/if:interface {
    deviate add {
      must "name='foo'" {
        error-message "Only foo.";
      }
    }
  }
}