Reversion yang model
[neutron.git] / model / src / main / yang / neutron-binding.yang
1 /*
2  * Copyright (c) 2015 IBM Corporation.  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-binding {
9
10     yang-version 1;
11
12     namespace "urn:opendaylight:neutron-binding";
13
14     prefix neutron-binding;
15
16     import ietf-yang-types { prefix "yang"; }
17     import yang-ext { prefix "ext"; }
18     import neutron { prefix "neutron"; }
19
20
21     organization "OpenDaylight Neutron Group";
22
23     contact "Ryan Moats <rmoats@us.ibm.com>";
24
25     description "This YANG module defines binding attributes that are used
26         by OpenDaylight Neutron YANG modules.";
27
28     revision "2015-07-12" {
29         description
30                 "OpenDaylight Beryllium release";
31     }
32
33     grouping binding-attributes {
34         leaf host-id {
35             type string;
36             description "The ID of the host where the port is allocated. In some cases,
37                         different implementations can run on different hosts.";
38         }
39
40         list vif-details {
41             description "A dictionary that enables the application to pass information
42                         about functions that the Networking API provides. To enable or
43                         disable port filtering features such as security group and anti-MAC/IP
44                         spoofing, specify port-filter: True or port-filter: False ";
45             leaf port-filter {
46                 type boolean;
47             }
48             leaf ovs-hybrid-plug {
49                 type boolean;
50             }
51         }
52         leaf vif-type {
53             type string;
54         }
55         leaf vnic-type {
56             type string;
57         }
58         leaf profile {
59             type string;
60         }
61     }
62
63     augment "/neutron:neutron/neutron:ports/neutron:port"{
64         description "This module augments the ports container in
65                 the neutron-ports module with binding information.";
66         ext:augment-identifier "port-binding-extension";
67         uses binding-attributes;
68     }
69 }