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 grouping firewall-attrs {
30 description "Detailed description of the firewall.";
33 description "whether the firewall is shared or not";
36 leaf firewall-policy-id {
37 description "the firewall policy UUID for this firewall";
42 grouping firewallpolicy-attrs {
45 description "Detailed description of the firewall policy.";
48 description "whether the firewall policy is shared or not";
52 description "whether the firewall policy is audited or not";
55 leaf-list firewall-rules {
56 description "whether the firewall policy is audited or not";
61 grouping firewallrule-attrs {
64 description "Detailed description of the firewall rule.";
68 description "Status of the firewall rule.";
71 description "whether the firewall rule is shared or not";
75 description "whether the firewall rule is enabled or not";
78 leaf firewall-policy-id {
79 description "the firewall policy UUID for this firewall rule";
83 description "the protocol this rule applies to";
87 description "the ip version this rule applies to";
92 description "the source ip address for this rule";
94 leaf destination-ip-addr {
96 description "the destination ip address for this rule";
99 description "the source port for this rule";
102 leaf destination-port {
103 description "the destination port for this rule";
107 description "the priority position this rule occupies";
111 description "the action fot this rule";
116 grouping fwaas-attributes {
117 container firewalls {
120 uses attrs:base-attrs;
121 uses attrs:admin-attrs;
125 container firewall-policies {
126 list firewall-policy {
128 uses attrs:base-attrs;
129 uses firewallpolicy-attrs;
132 container firewall-rules {
135 uses attrs:base-attrs;
136 uses firewallrule-attrs;