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"; }
20 import neutron-constants { prefix "constants"; }
21 import neutron-types { prefix "types"; }
23 organization "OpenDaylight Neutron Group";
25 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
27 description "This YANG module defines Openstack Neutron Ports model";
29 revision "2015-07-12" {
31 "OpenDaylight Beryllium release";
34 grouping port-attributes {
35 list allowed-address-pairs {
36 description "Allowed address pairs for this port. For example: neutron port-create
37 net1 --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr>
38 Setting an allowed-address-pair that matches the mac_address and
39 ip_address of a port is prevented. This is because that would
40 have no effect since traffic matching the mac_address and ip_address
41 is already allowed to pass through the port";
42 key "mac-address ip-address";
44 type yang:mac-address;
47 type types:ip-prefix-or-address;
54 list extra-dhcp-opts {
55 description "Extra DHCP options";
56 reference "http://developer.openstack.org/api-ref-networking-v2.html";
57 key "opt-name ip-version";
66 base "constants:ip-version-base";
74 type yang:mac-address;
77 key "subnet-id ip-address";
86 leaf-list security-groups {
94 grouping ports-attributes {
98 uses attrs:base-attributes;
99 uses attrs:admin-attributes;
100 uses port-attributes;