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
14 <import module="opendaylight-md-sal-binding">
\r
15 <prefix value="mdsal"/>
\r
16 <revision-date date="2013-10-28"/>
\r
19 <text>This module contains the base YANG definitions for
\r
20 main-impl implementation.</text>
\r
22 <revision date="2014-05-28">
\r
24 <text>Initial module draft.</text>
\r
27 <identity name="main-impl">
\r
28 <base name="config:module-type"/>
\r
29 <config:java-name-prefix java-prefix="L2SwitchMain"/>
\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
37 <leaf name="is-install-dropall-flow">
\r
38 <type name="boolean"/>
\r
40 <leaf name="dropall-flow-table-id">
\r
41 <type name="uint8"/>
\r
43 <leaf name="dropall-flow-priority">
\r
44 <type name="uint16"/>
\r
46 <leaf name="dropall-flow-hard-timeout">
\r
47 <type name="uint16"/>
\r
49 <leaf name="dropall-flow-idle-timeout">
\r
50 <type name="uint16"/>
\r
52 <leaf name="reactive-flow-table-id">
\r
53 <type name="uint8"/>
\r
55 <leaf name="reactive-flow-priority">
\r
56 <type name="uint16"/>
\r
58 <leaf name="reactive-flow-hard-timeout">
\r
59 <type name="uint16"/>
\r
61 <leaf name="reactive-flow-idle-timeout">
\r
62 <type name="uint16"/>
\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
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
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