1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
15 | Library | resources.libraries.python.honeycomb.Netconf
16 | Variables | resources/test_data/honeycomb/netconf/hello.py
17 | Documentation | Keywords for managing Netconf communication.
20 | Netconf session is established
21 | | [Documentation] | Open a communication channel on the Netconf session\
22 | | ... | and exchange hello messages.
24 | | ... | *Arguments:*
25 | | ... | - node - information about a DUT node. Type: dict
29 | | ... | \| Netconf session is established \| ${nodes['DUT1']} \|
30 | | [Arguments] | ${node}
31 | | Create session | ${node} | ${hello}
33 | Error trigger is sent
34 | | [Documentation] | Send the specified error trigger through the channel.
36 | | ... | *Arguments:*
37 | | ... | - trigger - RPC sequence that triggers a specific error. Type: string
41 | | ... | \| Error trigger is sent \| <rpc>_some data_</rpc>]]>]]> \|
42 | | [Arguments] | ${trigger}
45 | Replies should not contain RPC errors
46 | | [Documentation] | Read response received through the channel, and check if\
47 | | ... | it is an error report.
49 | | ... | *Arguments:*
54 | | ... | \| Replies should not contain RPC errors \|
55 | | ${resp}= | Get all responses
56 | | should not contain | ${resp} | rpc-error