2 * Copyright (c) 2016 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
8 module neutron-sfc-flow-classifier {
12 namespace "urn:opendaylight:neutron-sfc-flow-classifier";
14 prefix neutron-sfc-flow-classifier;
16 import ietf-yang-types { prefix "yang"; }
17 import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
18 import neutron-attrs { prefix "attrs"; }
19 import neutron-constants { prefix "constants"; }
22 organization "OpenDaylight Neutron Northbound Project";
24 contact "Anil Vishnoi <vishnoianil@gmail.com>";
26 description "This YANG module defines Openstack Neutron SFC Flow Classfier Models.These models are based on the
27 API's exposed by the OpenStack Neutron Networking SFC (networking-sfc) project. List of classifier APIs
28 are listed at following URL (http://docs.openstack.org/developer/networking-sfc/api.html)";
30 revision "2016-05-11" {
32 "OpenStack Neutron SFC Flow Classfier Models - Version 1.";
35 grouping flow-classifier-match-attributes {
38 Classify flows based on the provided ethertype.Currently OpenStack SFC only supports IPv4 and IPv6.";
41 base "constants:ethertype-base";
46 Classify flows based on the provided protocol.Currently OpenStack SFC only supports TCP,UDP and ICMP";
48 base "constants:protocol-base";
51 leaf source-port-range-min {
52 description "Minimum source protocol port";
57 leaf source-port-range-max {
58 description "Maximum source protocol port.";
63 leaf destination-port-range-min {
64 description "Minimum destination protocol port.";
69 leaf destination-port-range-max {
70 description "Maximum destination protocol port.";
75 leaf source-ip-prefix {
76 description "Source IPv4 or IPv6 prefix.";
79 leaf destination-ip-prefix {
80 description "Destination IPv4 or IPv6 prefix.";
83 leaf logical-source-port {
84 description "Neutron source port.";
87 leaf logical-destination-port {
88 description "Neutron destination port.";
92 description "List of Key-Value pair of L7 matching attributes";
93 key "match-parameter";
94 leaf match-parameter {
95 description "Name of the L7 parameter";
98 leaf match-parameter-value {
99 description "Value of the L7 parameter";
105 grouping sfc-flow-classifiers-attributes {
106 container sfc-flow-classifiers {
107 description "Contains list of Service Function Chaining flow classifiers";
108 list sfc-flow-classifier {
110 Defines high level model of SFC Flow Classifier. This models is based on the flow classifier APIs
111 defined by OpenStack Neutron networking-sfc project.";
114 uses attrs:base-attributes;
115 uses flow-classifier-match-attributes;