blob: c35ee2153637f083e5e211ab143554a73934ea9d [file] [log] [blame]
xueliang37a396a2016-09-09 14:43:49 +09001/*
2 * Copyright 2016-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.fujitsu;
18
19
20public interface FujitsuNetconfSessionListenerTest {
21
22 /**
23 * Verify editConfig request arguments.
24 *
25 * @param newConfiguration configuration to set
26 * @return true if everuthing as expected
27 */
28 boolean verifyEditConfig(String newConfiguration);
29
30 /**
31 * Verify editConfig request arguments.
32 *
33 * @param targetConfiguration the targetConfiguration to change
34 * @param mode selected mode to change the configuration
35 * @param newConfiguration configuration to set
36 * @return true if everuthing as expected
37 */
38 boolean verifyEditConfig(String targetConfiguration, String mode, String newConfiguration);
39
40 /**
41 * Verify get request arguments.
42 *
43 * @param filterSchema XML subtrees to include in the reply
44 * @param withDefaultsMode with-defaults mode
45 * @return true if everuthing as expected
46 */
47 boolean verifyGet(String filterSchema, String withDefaultsMode);
48
49 /**
50 * Build get RPC response if necessary.
51 *
52 * @return String or null if not support
53 */
54 String buildGetReply();
55
56 /**
57 * Verify rpc request arguments.
58 *
59 * @param request the XML containing the request to the server.
60 * @return true if everuthing as expected
61 */
62 boolean verifyWrappedRpc(String request);
63
64 /**
65 * Verify rpc request arguments.
66 *
67 * @param filterSchema XML subtrees to indicate specific notification
68 */
69 void verifyStartSubscription(String filterSchema);
70
71}