Seyeon Jeong | ac12956 | 2020-02-28 01:17:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020-present Open Networking Foundation |
| 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.t3.cli; |
| 18 | |
| 19 | import java.io.IOException; |
| 20 | |
| 21 | /** |
| 22 | * Common APIs for T3 CLI commands to load snapshots of the network states |
| 23 | * from {@link org.onosproject.t3.api.NibProfile.SourceType} and fill the NIB. |
| 24 | */ |
| 25 | public interface NibLoader { |
| 26 | |
| 27 | /** |
| 28 | * Extracts flow-related information and fills the flow NIB. |
| 29 | * |
| 30 | * @throws IOException exception during possible file I/O |
| 31 | */ |
| 32 | void loadFlowNib() throws IOException; |
| 33 | |
| 34 | /** |
| 35 | * Extracts group-related information and fills the group NIB. |
| 36 | * |
| 37 | * @throws IOException exception during possible file I/O |
| 38 | */ |
| 39 | void loadGroupNib() throws IOException; |
| 40 | |
| 41 | /** |
| 42 | * Extracts host-related information and fills the host NIB. |
| 43 | * |
| 44 | * @throws IOException exception during possible file I/O |
| 45 | */ |
| 46 | void loadHostNib() throws IOException; |
| 47 | |
| 48 | /** |
| 49 | * Extracts link-related information and fills the link NIB. |
| 50 | * |
| 51 | * @throws IOException exception during possible file I/O |
| 52 | */ |
| 53 | void loadLinkNib() throws IOException; |
| 54 | |
| 55 | /** |
| 56 | * Extracts device-related information and fills the device NIB. |
| 57 | * |
| 58 | * @throws IOException exception during possible file I/O |
| 59 | */ |
| 60 | void loadDeviceNib() throws IOException; |
| 61 | |
| 62 | /** |
| 63 | * Extracts driver-related information and fills the driver NIB. |
| 64 | * |
| 65 | * @throws IOException exception during possible file I/O |
| 66 | */ |
| 67 | void loadDriverNib() throws IOException; |
| 68 | |
| 69 | /** |
| 70 | * Extracts mastership-related information and fills the mastership NIB. |
| 71 | * |
| 72 | * @throws IOException exception during possible file I/O |
| 73 | */ |
| 74 | void loadMastershipNib() throws IOException; |
| 75 | |
| 76 | /** |
| 77 | * Extracts edge port-related information and fills the edge port NIB. |
| 78 | * |
| 79 | * @throws IOException exception during possible file I/O |
| 80 | */ |
| 81 | void loadEdgePortNib() throws IOException; |
| 82 | |
| 83 | /** |
| 84 | * Extracts route-related information and fills the route NIB. |
| 85 | * |
| 86 | * @throws IOException exception during possible file I/O |
| 87 | */ |
| 88 | void loadRouteNib() throws IOException; |
| 89 | |
| 90 | /** |
| 91 | * Extracts network config-related information and fills the network configuration NIB. |
| 92 | * |
| 93 | * @throws IOException exception during possible file I/O |
| 94 | */ |
| 95 | void loadNetworkConfigNib() throws IOException; |
| 96 | |
| 97 | /** |
| 98 | * Extracts multicast route-related information and fills the multicast route NIB. |
| 99 | * |
| 100 | * @throws IOException exception during possible file I/O |
| 101 | */ |
| 102 | void loadMulticastRouteNib() throws IOException; |
| 103 | |
| 104 | } |