a479b18d2a75019a1b2159688b1646222def88ee
[netvirt.git] / sfc / classifier / api / src / main / yang / netvirt-sfc-acl.yang
1 module netvirt-sfc-acl {
2     yang-version 1;
3     namespace "urn:opendaylight:netvirt:sfc:acl";
4     prefix "acl";
5
6     import ietf-access-control-list { prefix ietf-acl; revision-date 2016-02-18; }
7     import yang-ext { prefix ext; }
8
9     revision "2015-01-05" {
10         description "Initial revision of netvirt extensions to ietf-acl model";
11     }
12
13     augment "/ietf-acl:access-lists/ietf-acl:acl/ietf-acl:access-list-entries/ietf-acl:ace/ietf-acl:matches" {
14         description "Neutron network uuid";
15         ext:augment-identifier "neutron-network";
16         leaf network-uuid {
17             type string;
18         }
19     }
20
21     augment "/ietf-acl:access-lists/ietf-acl:acl/ietf-acl:access-list-entries/ietf-acl:ace/ietf-acl:matches" {
22         description "Match traffic based on its source or destination neutron port";
23         ext:augment-identifier "neutron-ports";
24         leaf source-port-uuid {
25             type string;
26         }
27         leaf destination-port-uuid {
28             type string;
29         }
30     }
31
32     grouping netvirtsfc-acl-actions {
33         leaf sfc-name {
34             type string;
35         }
36         leaf sfp-name {
37             type string;
38         }
39         leaf rsp-name {
40             type string;
41         }
42         leaf render-rsp {
43             type boolean;
44             default "false";
45         }
46     }
47
48     augment "/ietf-acl:access-lists/ietf-acl:acl/ietf-acl:access-list-entries/ietf-acl:ace/ietf-acl:actions" {
49         description "Redirect traffic to SFC identified by either SFC, SFP or RSP";
50         ext:augment-identifier "redirect-to-sfc";
51         uses netvirtsfc-acl-actions;
52     }
53 }