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 Neutron VPNaaS model";
27 revision "2015-07-12" {
29 "OpenDaylight Beryllium release";
32 grouping firewall-attributes {
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 firewall-policy-attributes {
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 firewall-rule-attributes {
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 firewalls-attributes {
122 container firewalls {
125 uses attrs:base-attributes;
126 uses attrs:admin-attributes;
127 uses firewall-attributes;
131 grouping policies-attributes {
132 container firewall-policies {
133 list firewall-policy {
135 uses attrs:base-attributes;
136 uses firewall-policy-attributes;
140 grouping rules-attributes {
141 container firewall-rules {
144 uses attrs:base-attributes;
145 uses firewall-rule-attributes;