016f1a861862e7e556b11898ff6c0cdeac86838d
[neutron.git] / model / src / main / yang / neutron-qos-ext.yang
1 /*
2  * Copyright (c) 2016 Intel Corporation, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module neutron-qos-ext {
9     // This model augments the network and port yang model for Qos.
10     // In order to do that it is required to import neutron.yang.
11     // Neutron model can't be imported in neutron-qos.yang as neutron-qos.yang
12     // itself is imported in neutron.yang. Due to do this reason a seperate file is
13     // created for augmentation.
14
15     yang-version 1;
16
17     namespace "urn:opendaylight:neutron-qos-ext";
18
19     prefix neutron-qos-ext;
20
21     import neutron { prefix "neutron"; }
22     import yang-ext { prefix "ext"; }
23     import ietf-yang-types { prefix "yang"; revision-date "2013-07-15"; }
24
25     organization "OpenDaylight Neutron Group";
26
27     contact "Pramod Raghavendra Jayathirth <pramod.rj07@gmail.com>";
28
29     description "This YANG module defines Openstack Neutron Qos provider extensions model";
30
31     revision "2016-06-13" {
32         description
33                 "OpenDaylight Boron release";
34     }
35
36     augment "/neutron:neutron/neutron:networks/neutron:network" {
37         description "This module augments the networks container
38             in the neutron-networks module with qos information";
39         // ext:augment-identifier value needs to unique as name of the generated classes
40         // is derived from this string
41         ext:augment-identifier "qos-network-extension";
42         leaf qos-policy-id {
43             description "The Networks to which the Qos Policies can be applied";
44             type yang:uuid;
45         }
46     }
47
48     augment "/neutron:neutron/neutron:ports/neutron:port" {
49         description "This module augments the ports container
50             in the neutron-ports module with qos information";
51         // ext:augment-identifier value needs to unique as name of the generated classes
52         // is derived from this string
53         ext:augment-identifier "qos-port-extension";
54         leaf qos-policy-id {
55             description "The ports to which the Qos Policies can be applied";
56             type yang:uuid;
57         }
58     }
59 }