2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
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
12 namespace "urn:opendaylight:neutron-ports";
16 import ietf-yang-types { prefix "yang"; }
17 // It requires rfc6991 (revision 2013-07-15), but odl don't have it, so this patch verify build will fail.
18 import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
19 import neutron-attrs { prefix "attrs"; }
21 organization "OpenDaylight Neutron Group";
23 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
25 description "This YANG module defines Openstack Juno House Neutron Ports model";
27 revision "2014-10-02" {
29 "Initial version of Openstack Neutron Ice House Ports model.";
33 list allowed-address-pairs {
34 description "Allowed address pairs for this port. For example: neutron port-create
35 net1 --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr>
36 Setting an allowed-address-pair that matches the mac_address and
37 ip_address of a port is prevented. This is because that would
38 have no effect since traffic matching the mac_address and ip_address
39 is already allowed to pass through the port";
55 list extra-dhcp-opts {
56 description "Extra DHCP options";
57 reference "http://developer.openstack.org/api-ref-networking-v2.html";
58 key "opt-name ip-version";
78 leaf binding-profile {
92 leaf-list security-groups {
100 grouping ports-attributes {
104 uses attrs:base-attributes;
105 uses attrs:admin-attributes;