Remove unused YANG imports
[openflowplugin.git] / model / model-flow-service / src / main / yang / sal-async-config.yang
1 module sal-async-config {
2     namespace "urn:opendaylight:async-config:service";
3     prefix async-config;
4
5     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
6     import openflow-protocol { prefix ofproto; revision-date "2013-07-31"; }
7
8     description "Asynchronous configuration message.";
9
10     revision "2017-06-19" {
11         description "Initial revision of asynchronous configuration service.";
12     }
13
14     typedef packet-in-mask {
15         type bits {
16             bit NO_MATCH;
17             bit ACTION;
18             bit INVALID_TTL;
19         }
20     }
21
22     typedef port-status-mask {
23         description "Be careful when modifying this configuration, as this can impact lldp-speaker";
24         type bits {
25             bit ADD;
26             bit DELETE;
27             bit UPDATE;
28         }
29     }
30
31     typedef flow-removed-mask {
32         description "Be careful when modifying this configuration, as this can impact FRM.";
33         type bits {
34             bit IDLE_TIMEOUT;
35             bit HARD_TIMEOUT;
36             bit DELETE;
37             bit GROUP_DELETE;
38         }
39      }
40
41     grouping async-config {
42         container packet-in-mask {
43             leaf master-mask {
44                 type packet-in-mask;
45             }
46
47             leaf slave-mask {
48                 type packet-in-mask;
49             }
50         }
51
52         container port-status-mask {
53             leaf master-mask {
54                 type port-status-mask;
55             }
56
57             leaf slave-mask {
58                 type port-status-mask;
59             }
60         }
61
62         container flow-removed-mask {
63             leaf master-mask {
64                 type flow-removed-mask;
65             }
66
67             leaf slave-mask {
68                 type flow-removed-mask;
69             }
70         }
71     }
72
73     container async-config-message {
74         uses ofproto:ofHeader;
75         uses async-config;
76     }
77
78     rpc set-async {
79         description "Controller to switch message set configuration.";
80
81         input {
82             uses "inv:node-context-ref";
83             uses async-config;
84         }
85     }
86
87     rpc get-async {
88         description "Controller to switch message get configuration.";
89
90         input {
91             uses "inv:node-context-ref";
92         }
93
94         output {
95             uses async-config;
96         }
97     }
98
99 }