Fix netvirtsfc flows
[ovsdb.git] / openstack / net-virt-sfc / api / src / main / yang / netvirt-acl.yang
1 module netvirt-sfc-acl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:netvirt:sfc:acl";
4     prefix "acl";
5
6     import ietf-access-control-list { prefix ietf-acl;}
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     // TODO: Add choice for Neutron and add fields there instead of at the root of matches
14   //augment "/ietf-acl:access-lists/ietf-acl:access-list/ietf-acl:access-list-entries/ietf-acl:access-list-entry/ietf-acl:matches" {
15     augment "/ietf-acl:access-lists/ietf-acl:acl/ietf-acl:access-list-entries/ietf-acl:ace/ietf-acl:matches" {
16         description "Neutron network uuid";
17         ext:augment-identifier "neutron-network";
18         leaf network-uuid {
19             type string;
20         }
21     }
22
23     // TODO: Add choice for Neutron and add fields there instead of at the root of matches
24     augment "/ietf-acl:access-lists/ietf-acl:acl/ietf-acl:access-list-entries/ietf-acl:ace/ietf-acl:actions" {
25         description "Redirect traffic to SFC identified by SFC Path ID";
26         ext:augment-identifier "redirect-to-sfc";
27         leaf redirect-sfc {
28             type string;
29         }
30     }
31 }