Baseline for neutron-vpp mapping
[groupbasedpolicy.git] / renderers / vpp / src / main / yang / vpp-renderer.yang
1 /*
2  * Copyright (c) 2014 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     description
16         "This module is a baseline for the group-based policy vpp renderer model.";
17
18     revision "2016-04-25" {
19         description
20             "Initial revision.";
21     }
22
23     import base-endpoint { prefix base-ep; revision-date 2016-04-27; }
24
25     container config {
26         list vpp-endpoint {
27             key "context-type context-id address-type address";
28             uses base-ep:address-endpoint-key;
29             choice interface-type-choice {
30                 case vhost-user-case {
31                     leaf socket {
32                         description "A unique ID for the neutron port";
33                         type string {
34                             length 1..255;
35                         }
36                     }
37                 }
38             }
39         }
40     }
41 }