Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-impl / src / test / resources / semantic-statement-parser / yin / modules / main-impl.yin
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <module name="main-impl"\r
3         xmlns="urn:ietf:params:xml:ns:yang:yin:1"\r
4         xmlns:main-impl="urn:opendaylight:l2switch:main-impl"\r
5         xmlns:config="urn:opendaylight:params:xml:ns:yang:controller:config"\r
6         xmlns:mdsal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">\r
7   <yang-version value="1"/>\r
8   <namespace uri="urn:opendaylight:l2switch:main-impl"/>\r
9   <prefix value="main-impl"/>\r
10   <import module="config">\r
11     <prefix value="config"/>\r
12     <revision-date date="2013-04-05"/>\r
13   </import>\r
14   <import module="opendaylight-md-sal-binding">\r
15     <prefix value="mdsal"/>\r
16     <revision-date date="2013-10-28"/>\r
17   </import>\r
18   <description>\r
19     <text>This module contains the base YANG definitions for\r
20 main-impl implementation.</text>\r
21   </description>\r
22   <revision date="2014-05-28">\r
23     <description>\r
24       <text>Initial module draft.</text>\r
25     </description>\r
26   </revision>\r
27   <identity name="main-impl">\r
28     <base name="config:module-type"/>\r
29     <config:java-name-prefix java-prefix="L2SwitchMain"/>\r
30   </identity>\r
31   <augment target-node="/config:modules/config:module/config:configuration">\r
32     <case name="main-impl">\r
33       <when condition="/config:modules/config:module/config:type = 'main-impl'"/>\r
34       <leaf name="is-learning-only-mode">\r
35         <type name="boolean"/>\r
36       </leaf>\r
37       <leaf name="is-install-dropall-flow">\r
38         <type name="boolean"/>\r
39       </leaf>\r
40       <leaf name="dropall-flow-table-id">\r
41         <type name="uint8"/>\r
42       </leaf>\r
43       <leaf name="dropall-flow-priority">\r
44         <type name="uint16"/>\r
45       </leaf>\r
46       <leaf name="dropall-flow-hard-timeout">\r
47         <type name="uint16"/>\r
48       </leaf>\r
49       <leaf name="dropall-flow-idle-timeout">\r
50         <type name="uint16"/>\r
51       </leaf>\r
52       <leaf name="reactive-flow-table-id">\r
53         <type name="uint8"/>\r
54       </leaf>\r
55       <leaf name="reactive-flow-priority">\r
56         <type name="uint16"/>\r
57       </leaf>\r
58       <leaf name="reactive-flow-hard-timeout">\r
59         <type name="uint16"/>\r
60       </leaf>\r
61       <leaf name="reactive-flow-idle-timeout">\r
62         <type name="uint16"/>\r
63       </leaf>\r
64       <container name="notification-service">\r
65         <uses name="config:service-ref">\r
66           <refine target-node="type">\r
67             <mandatory value="true"/>\r
68             <config:required-identity name="mdsal:binding-notification-service"/>\r
69           </refine>\r
70         </uses>\r
71       </container>\r
72       <container name="data-broker">\r
73         <uses name="config:service-ref">\r
74           <refine target-node="type">\r
75             <mandatory value="false"/>\r
76             <config:required-identity name="mdsal:binding-async-data-broker"/>\r
77           </refine>\r
78         </uses>\r
79       </container>\r
80       <container name="rpc-registry">\r
81         <uses name="config:service-ref">\r
82           <refine target-node="type">\r
83             <mandatory value="true"/>\r
84             <config:required-identity name="mdsal:binding-rpc-registry"/>\r
85           </refine>\r
86         </uses>\r
87       </container>\r
88     </case>\r
89   </augment>\r
90 </module>\r