2 * Copyright (c) 2015 Huawei Technologies 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
11 namespace "urn:opendaylight:faas:faas-endpoint";
12 prefix "faas-endpoint";
14 import yang-ext { prefix ext; revision-date "2013-07-09"; }
15 import opendaylight-inventory { prefix inv; revision-date "2013-08-19"; }
16 import gbp-common { prefix gbp-common; }
17 import endpoint { prefix endpoint; }
20 description "Initial revision";
23 grouping switch-attach-location {
25 "The switch attachment for this endpoint";
28 description "The switch for this attached point";
32 leaf node-connector-id {
33 description "The node connector that this point is attached to";
34 type inv:node-connector-id;
38 grouping endpoint-ext-fields {
40 description "The subnet Id";
41 type gbp-common:unique-id;
43 uses switch-attach-location;
46 augment "/endpoint:endpoints/endpoint:endpoint" {
47 ext:augment-identifier "faas-endpoint-context";
48 uses endpoint-ext-fields;
51 augment "/endpoint:register-endpoint/endpoint:input" {
52 ext:augment-identifier "faas-endpoint-context-input";
53 uses endpoint-ext-fields;