Integrating FAAS renderer with the faas fabric mapping services. Also,
[groupbasedpolicy.git] / renderers / faas / src / main / yang / faas-endpoint.yang
1 /*
2  * Copyright (c) 2015 Huawei Technologies 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 faas-endpoint {
10     yang-version 1;
11     namespace "urn:opendaylight:faas:faas-endpoint";
12     prefix "faas-endpoint";
13
14     import yang-ext { prefix ext; revision-date "2013-07-09"; }
15     import endpoint { prefix endpoint; revision-date 2014-04-21; }
16     import faas-common { prefix faas-common; revision-date 2015-10-13; }
17
18     revision 2015-10-09 {
19         description "Initial revision";
20     }
21
22     grouping faas-port-ref {
23         leaf faas-port-ref-id {
24             description "faas port cross reference";
25             type faas-common:uuid;
26         }
27     }
28     augment "/endpoint:endpoints/endpoint:endpoint" {
29         ext:augment-identifier "faas-endpoint-context";
30         uses faas-port-ref;
31     }
32
33     augment "/endpoint:register-endpoint/endpoint:input" {
34         ext:augment-identifier "faas-endpoint-context-input";
35         uses faas-port-ref;
36     }
37 }