blob: f9788f33e7a8ee4fb7ce536c07f2aad5f4e6ecaf [file] [log] [blame]
Sean Condon06613e92017-06-09 15:14:01 +01001/*
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.DatastoreId;
20import org.onosproject.netconf.NetconfException;
21import org.onosproject.netconf.NetconfSession;
22import org.onosproject.yang.gen.v1.mseasafiltering.rev20160412.MseaSaFiltering;
23import org.onosproject.yang.gen.v1.mseasafiltering.rev20160412.MseaSaFilteringOpParam;
24import org.onosproject.yang.gen.v1.mseasafiltering.rev20160412.mseasafiltering.sourceipaddressfiltering.interfaceeth0.SourceAddressRange;
25
26import java.util.List;
27
28/**
29 * Extension of mseaSaFilteringService to include NETCONF sessions.
30 *
31 * This is manually extended and should be revised if the msea-sa-filtering.yang file changes
32 */
33public interface MseaSaFilteringNetconfService {
34 /**
35 * Returns the attribute mseaSaFiltering.
36 *
37 * @param mseaSaFiltering value of mseaSaFiltering
38 * @param session An active NETCONF session
39 * @return mseaSaFiltering
40 * @throws NetconfException if the session has any error
41 */
42 MseaSaFiltering getMseaSaFiltering(
43 MseaSaFilteringOpParam mseaSaFiltering, final NetconfSession session)
44 throws NetconfException;
45
46 /**
47 * Get a filtered subset of the config model.
48 *
49 * @param session An active NETCONF session
50 * @return mseaSaFiltering
51 * @throws NetconfException if the session has any error
52 */
53 public List<SourceAddressRange> getConfigMseaSaFilterIds(NetconfSession session)
54 throws NetconfException;
55
56 /**
57 * Sets the value to attribute mseaSaFiltering.
58 *
59 * @param mseaSaFiltering value of mseaSaFiltering
60 * @param session An active NETCONF session
61 * @param targetDs The NETCONF datastore to edit
62 * @return Boolean to indicate success or failure
63 * @throws NetconfException if the session has any error
64 */
65 boolean setMseaSaFiltering(MseaSaFilteringOpParam mseaSaFiltering,
66 NetconfSession session, DatastoreId targetDs) throws NetconfException;
67
68 /**
69 * Deletes the value to attribute mseaSaFiltering.
70 *
71 * @param mseaSaFiltering value of mseaSaFiltering
72 * @param session An active NETCONF session
73 * @param targetDs The NETCONF datastore to edit
74 * @return Boolean to indicate success or failure
75 * @throws NetconfException if the session has any error
76 */
77 boolean deleteMseaSaFilteringRange(MseaSaFilteringOpParam mseaSaFiltering,
78 NetconfSession session, DatastoreId targetDs) throws NetconfException;
79
80}