Merge "Next Topology component"
[groupbasedpolicy.git] / renderers / vpp / src / main / yang / vpp-renderer.yang
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 module vpp-renderer {
10     yang-version 1;
11
12     namespace "urn:opendaylight:groupbasedpolicy:vpp_renderer";
13     prefix "vpp-renderer";
14
15     import base-endpoint { prefix base-ep; revision-date 2016-04-27; }
16
17     description
18         "This module is a baseline for the group-based policy vpp renderer model.";
19
20     revision "2016-04-25" {
21         description
22             "Initial revision.";
23     }
24
25     container config {
26         list vpp-endpoint {
27             description "Renderer creates/removes interface on VPP node based on given parameters.";
28
29             key "context-type context-id address-type address";
30             uses base-ep:address-endpoint-key;
31
32             leaf vpp-node-path {
33                 description "Path to a node representing mount-point to VPP instance.";
34                 type instance-identifier;
35             }
36             leaf vpp-interface-name {
37                 description "Name of interface for the endpoint on VPP";
38                 type string;
39             }
40             leaf description {
41                 description "Additional description of the vpp-endpoint";
42                 type string;
43             }
44             choice interface-type-choice {
45                 case vhost-user-case {
46                     leaf socket {
47                         description "A unique ID for the neutron port";
48                         type string {
49                             length 1..255;
50                         }
51                     }
52                 }
53             }
54         }
55     }
56 }