blob: f23e9c69f713065c02508d0ecc4ced726ea042ca [file] [log] [blame]
Mahesh Poojary Huaweia330c582016-08-26 10:38:10 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Mahesh Poojary Huaweia330c582016-08-26 10:38:10 +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.ypm;
18
19import org.onosproject.yms.ydt.YdtContext;
20
21/**
22 * Abstraction of an entity which provides interfaces to YANG Protocol Metadata Manager.
23 */
24public interface YpmService {
25
26 /**
27 * Returns the protocol data stored in sepecific data model path.
28 *
29 * @param rootNode YANG data tree
30 * @return YANG protocol metadata
31 */
32 YpmContext getProtocolData(YdtContext rootNode);
33
34 /**
35 * Sets the YANG protocol metadata in specific ydt path in ypm tree.
36 *
37 * @param rootNode YANG data tree
38 * @param data YANG protocol metadata
39 */
40 void setProtocolData(YdtContext rootNode, Object data);
41}