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"; }
19 import ietf-inet-types { prefix "inet-types"; }
22 "This module is a baseline for the group-based policy vpp renderer model.";
24 revision "2016-04-25" {
29 identity network-type-base {
30 description "Base for Network Types.";
33 identity flat-network {
34 description "Flat Provider Network Type";
35 base network-type-base;
38 identity vlan-network {
39 description "VLAN Provider Network Type";
40 base network-type-base;
43 typedef network-type {
44 description "Type of Network.";
46 base network-type-base;
52 description "Renderer creates/removes interface on VPP node based on given parameters.";
54 key "context-type context-id address-type address";
55 uses base-ep:address-endpoint-key;
58 description "Path to a node representing mount-point to VPP instance.";
60 type instance-identifier;
62 leaf vpp-interface-name {
63 description "Name of interface for the endpoint on VPP";
68 description "Additional description of the vpp-endpoint";
71 choice interface-type-choice {
72 case vhost-user-case {
74 description "Identifier of a vhost user";
82 description "Identifier of a tap port";
88 leaf physical-address {
89 description "MAC address of a tap port";
90 type yang-types:phys-address;
95 description "MAC address of a loopback interface";
96 type yang-types:phys-address;
99 description "Ip address of a loopback interface";
100 type inet-types:ip-address;
103 description "Ip address prefix of a loopback interface";
104 type inet-types:ip-prefix;
107 description "Enable/disable BVI for loopback interface";
114 list gbp-bridge-domain {
117 description "Same as in VBD.";
128 when "type = 'vlan-network'";
129 type l2-types:vlan-id;
131 list physical-location-ref {
133 "Refers to physical interfaces on vpp nodes through which external
134 nodes belonging to the same bridge-domain can be reached.";
137 description "Refers to a VPP node.";
140 leaf-list interface {
141 description "Physical interface on the VPP node.";