2 * Copyright (c) 2015 IBM Corporation. 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-fwaas";
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 "R. Moats <rmoats@us.ibm.com>";
25 description "This YANG module defines Openstack Juno House Neutron VPNaaS model";
27 revision "2014-10-02" {
32 grouping firewall-attrs {
35 description "Detailed description of the firewall.";
38 description "whether the firewall is shared or not";
41 leaf firewall-policy-id {
42 description "the firewall policy UUID for this firewall";
47 grouping firewallpolicy-attrs {
50 description "Detailed description of the firewall policy.";
53 description "whether the firewall policy is shared or not";
57 description "whether the firewall policy is audited or not";
60 leaf-list firewall-rules {
61 description "whether the firewall policy is audited or not";
66 grouping firewallrule-attrs {
69 description "Detailed description of the firewall rule.";
73 description "Status of the firewall rule.";
76 description "whether the firewall rule is shared or not";
80 description "whether the firewall rule is enabled or not";
83 leaf firewall-policy-id {
84 description "the firewall policy UUID for this firewall rule";
88 description "the protocol this rule applies to";
92 description "the ip version this rule applies to";
97 description "the source ip address for this rule";
99 leaf destination-ip-addr {
100 type inet:ip-address;
101 description "the destination ip address for this rule";
104 description "the source port for this rule";
107 leaf destination-port {
108 description "the destination port for this rule";
112 description "the priority position this rule occupies";
116 description "the action fot this rule";
121 grouping fwaas-attributes {
122 container firewalls {
125 uses attrs:base-attrs;
126 uses attrs:admin-attrs;
130 container firewall-policies {
131 list firewall-policy {
133 uses attrs:base-attrs;
134 uses firewallpolicy-attrs;
137 container firewall-rules {
140 uses attrs:base-attrs;
141 uses firewallrule-attrs;