blob: 9e35df06b1edecc3e453e918fcd67b578afb6ea6 [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 */
16
17package org.onosproject.drivers.microsemi.yang;
18
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.sa.filtering.rev20160412.MseaSaFiltering;
23import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.sa.filtering.rev20160412.MseaSaFilteringOpParam;
24
25/**
26 * Extension of mseaSaFilteringService to include NETCONF sessions.
27 *
28 * This is manually extended and should be revised if the msea-sa-filtering.yang file changes
29 */
30public interface MseaSaFilteringNetconfService {
31 /**
32 * Returns the attribute mseaSaFiltering.
33 *
34 * @param mseaSaFiltering value of mseaSaFiltering
35 * @param session An active NETCONF session
36 * @return mseaSaFiltering
37 * @throws NetconfException if the session has any error
38 */
39 MseaSaFiltering getMseaSaFiltering(
40 MseaSaFilteringOpParam mseaSaFiltering, final NetconfSession session)
41 throws NetconfException;
42
43 /**
44 * Sets the value to attribute mseaSaFiltering.
45 *
46 * @param mseaSaFiltering value of mseaSaFiltering
47 * @param session An active NETCONF session
48 * @param targetDs The NETCONF datastore to edit
49 * @throws NetconfException if the session has any error
50 */
51 void setMseaSaFiltering(MseaSaFilteringOpParam mseaSaFiltering, NetconfSession session, TargetConfig targetDs)
52 throws NetconfException;
53
54}