Sean Condon | fae8e66 | 2016-12-15 10:25:13 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.drivers.microsemi.yang; |
| 18 | |
| 19 | import org.onosproject.netconf.NetconfException; |
| 20 | import org.onosproject.netconf.NetconfSession; |
| 21 | import org.onosproject.netconf.TargetConfig; |
| 22 | import org.onosproject.yang.gen.v1.http.www.microsemi.com.microsemi.edge.assure.msea.sa.filtering.rev20160412.MseaSaFiltering; |
| 23 | import 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 | */ |
| 30 | public 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 | } |