2 * Copyright (c) 2016 Cisco 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
12 namespace "urn:opendaylight:groupbasedpolicy:vpp_renderer";
13 prefix "vpp-renderer";
15 import base-endpoint { prefix base-ep; revision-date 2016-04-27; }
16 import network-topology { prefix nt; revision-date 2013-10-21; }
17 import opendaylight-l2-types { prefix l2-types; revision-date "2013-08-27"; }
18 import ietf-yang-types { prefix yang-types; revision-date "2013-07-15"; }
21 "This module is a baseline for the group-based policy vpp renderer model.";
23 revision "2016-04-25" {
28 identity network-type-base {
29 description "Base for Network Types.";
32 identity flat-network {
33 description "Flat Provider Network Type";
34 base network-type-base;
37 identity vlan-network {
38 description "VLAN Provider Network Type";
39 base network-type-base;
42 typedef network-type {
43 description "Type of Network.";
45 base network-type-base;
51 description "Renderer creates/removes interface on VPP node based on given parameters.";
53 key "context-type context-id address-type address";
54 uses base-ep:address-endpoint-key;
57 description "Path to a node representing mount-point to VPP instance.";
59 type instance-identifier;
61 leaf vpp-interface-name {
62 description "Name of interface for the endpoint on VPP";
67 description "Additional description of the vpp-endpoint";
70 choice interface-type-choice {
71 case vhost-user-case {
73 description "Identifier of a vhost user";
81 description "Identifier of a tap port";
87 leaf physical-address {
88 description "MAC address of a tap port";
89 type yang-types:phys-address;
95 list gbp-bridge-domain {
98 description "Same as in VBD.";
109 when "type = 'vlan-network'";
110 type l2-types:vlan-id;
112 list physical-location-ref {
114 "Refers to physical interfaces on vpp nodes through which external
115 nodes belonging to the same bridge-domain can be reached.";
118 description "Refers to a VPP node.";
121 leaf-list interface {
122 description "Physical interface on the VPP node.";