c9f4564b07c689cbb9eba82d9096522183c9ce70
[netvirt.git] / sfc / classifier / api / src / main / yang / netvirt-sfc-classifier.yang
1 module netvirt-sfc-classifier {
2     yang-version 1;
3     namespace "urn:opendaylight:netvirt:sfc:classifier";
4     prefix "classifier";
5
6     revision "2015-01-05" {
7         description "Initial revision of netvirt classifier model";
8     }
9
10     container classifiers {
11         description "Classifier container which represents the ACL being applied,
12                      attachment point and the associated chain";
13
14         list classifier {
15             description "A list of SFC classifiers";
16             key "name";
17             leaf name {
18                 type string;
19             }
20             leaf acl {
21                 type string;
22             }
23             container sffs {
24                 list sff {
25                     description "The classifier will be attached to these SFFs";
26                     key "name";
27                     leaf name {
28                         type string;
29                     }
30                 }
31             }
32             container bridges {
33                 list bridge {
34                     key "name";
35                     leaf name {
36                         type string;
37                     }
38                     leaf direction {
39                         type enumeration {
40                             enum ingress;
41                             enum egress;
42                         }
43                     }
44                 }
45             }
46         }
47     }
48 }