2 * Copyright (c) 2017 Intel 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
9 module neutron-tapaas {
11 namespace "urn:opendaylight:neutron-tapaas";
12 prefix neutron-tapaas;
14 import ietf-yang-types { prefix "yang"; }
15 import neutron-attrs { prefix "attrs"; }
17 organization "OpenDaylight Neutron Northbound Project";
19 contact "Neutron Northbound <neutron-dev@lists.opendaylight.org>";
21 description " This YANG module defines Openstack Neutron Tap-as-a-Service(Taas) Model.
22 The model is based on the REST APIs exposed by the trunk service of Neutron version 2.
23 description of the REST API is located in inside the specification for tap-as-a-service
24 (https://github.com/openstack/tap-as-a-service/blob/master/specs/mitaka/tap-as-a-service.rst)";
26 revision "2017-10-24" {
28 "OpenStack Neutron Tap as a service - Version 1.";
31 identity direction-base {
32 description "Base for defining direction of traffic";
35 identity direction-in {
36 description "Traffic arriving at Source Port";
40 identity direction-out {
41 description "Traffic leaving Source Port";
45 identity direction-both {
46 description "Both Directions are mirrored";
50 grouping tap-flow-attributes {
51 description "Grouping for Tap Flow";
54 description "UUID of the Tap Service Instance";
58 description "Source port of traffic ";
62 base "direction-base";
64 description "Direction of traffic";
68 grouping tap-service-attributes {
69 description "Grouping for Tap Service";
72 description "Destination port for traffic";
77 uses attrs:base-attributes;
78 uses tap-flow-attributes;
79 description "Tap Flow container";
84 grouping tap-services-attributes {
85 container tap-services {
88 uses attrs:base-attributes;
89 uses tap-service-attributes;
90 description "Tap Services Container which includes Tap Flow";
93 container tap-services-status {
95 list tap-service-status {
99 description "UUID of the Tap Service Instance";
103 description "Operational parameter to track status";