blob: cf391fa507c977d31c63ec5a0d78ecfd72c10da9 [file] [log] [blame]
Sean Condonfae8e662016-12-15 10:25:13 +00001/*
2 * Copyright 2017-present Open Networking Laboratory
3 *
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 */
16package org.onosproject.drivers.microsemi.yang;
17
18import org.onosproject.event.ListenerService;
19import org.onosproject.netconf.NetconfException;
20import org.onosproject.netconf.NetconfSession;
21import org.onosproject.netconf.TargetConfig;
22import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.MseaCfm;
23import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.MseaCfmOpParam;
24import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.MseaCfmEvent;
25import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.MseaCfmEventListener;
26import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.abortloopback.AbortLoopbackInput;
27import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.transmitlinktrace.TransmitLinktraceInput;
28import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.transmitlinktrace.TransmitLinktraceOutput;
29import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.cfm.rev20160229.mseacfm.transmitloopback.TransmitLoopbackInput;
30
31/**
32 * Extension of mseaCfmService to include NETCONF sessions.
33 *
34 * This is manually extended and should be revised if the msea-cfm.yang,
35 * msea-soam-pm.yang or msea-soam-fm.yang files change
36 */
37public interface MseaCfmNetconfService extends ListenerService<MseaCfmEvent, MseaCfmEventListener> {
38
39 /**
40 * Returns attributes of MEP.
41 *
42 * @param mdName The name of the MD
43 * @param maName The name of the MA
44 * @param mepId The ID of the MEP
45 * @param session An active NETCONF session
46 * @return mseaCfm
47 * @throws NetconfException if the session has any error
48 */
49 MseaCfm getMepEssentials(String mdName, String maName, int mepId,
50 NetconfSession session) throws NetconfException;
51
52
53 /**
54 * Returns attributes of DM.
55 *
56 * @param mdName The name of the MD
57 * @param maName The name of the MA
58 * @param mepId The ID of the MEP
59 * @param dmId The Id of the Delay Measurement
60 * @param session An active NETCONF session
61 * @return mseaCfm
62 * @throws NetconfException if the session has any error
63 */
64 MseaCfm getSoamDm(String mdName, String maName, int mepId,
65 int dmId, NetconfSession session) throws NetconfException;
66
67 /**
68 * Sets the value to attribute mseaCfm.
69 *
70 * @param mseaCfm value of mseaCfm
71 * @param session An active NETCONF session
72 * @param targetDs one of running, candidate or startup
73 * @throws NetconfException if the session has any error
74 */
75 void setMseaCfm(MseaCfmOpParam mseaCfm, NetconfSession session, TargetConfig targetDs) throws NetconfException;
76
77 /**
78 * Service interface of transmitLoopback.
79 *
80 * @param inputVar input of service interface transmitLoopback
81 * @param session An active NETCONF session
82 * @throws NetconfException if the session has any error
83 */
84 void transmitLoopback(TransmitLoopbackInput inputVar, NetconfSession session) throws NetconfException;
85
86 /**
87 * Service interface of abortLoopback.
88 *
89 * @param inputVar input of service interface abortLoopback
90 * @param session An active NETCONF session
91 * @throws NetconfException if the session has any error
92 */
93 void abortLoopback(AbortLoopbackInput inputVar, NetconfSession session) throws NetconfException;
94
95 /**
96 * Service interface of transmitLinktrace.
97 *
98 * @param inputVar input of service interface transmitLinktrace
99 * @param session An active NETCONF session
100 * @return transmitLinktraceOutput output of service interface transmitLinktrace
101 * @throws NetconfException if the session has any error
102 */
103 TransmitLinktraceOutput transmitLinktrace(TransmitLinktraceInput inputVar, NetconfSession session)
104 throws NetconfException;
105}