blob: b18506603ea1ece3d7dbb16a1fc8f3b5d85f8afd [file] [log] [blame]
Gaurav Agrawalb102b012016-08-02 12:52:48 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Gaurav Agrawalb102b012016-08-02 12:52:48 +05303 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.yms.ydt;
18
Gaurav Agrawalb102b012016-08-02 12:52:48 +053019/**
20 * Abstraction of an entity which represent YANG data tree. This is used
21 * for exchanging information between YANG management system and NBI protocol.
22 */
23public interface Ydt {
24
25 /**
26 * Returns the root context information available in YDT node. This root
27 * node is a logical container of a protocol which holds the complete data
28 * tree. After building YANG data tree, root node can be obtained from this.
29 *
30 * @return root YDT context which is logical container of a protocol which
31 * is holder of the complete tree
32 */
33 YdtContext getRootNode();
34
35 /**
36 * Returns YANG management system operation type. It represents type of
37 * root level operation for the request. This is used by protocols to
38 * specify the root level operation associated with the request.
39 *
40 * @return YANG management system operation type
41 */
42 YmsOperationType getYmsOperationType();
43}