377c956760b76f4f659c1f33e2379e38ad2e47e4
[csit.git] / resources / libraries / robot / honeycomb / proxyarp.robot
1 # Copyright (c) 2017 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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 *** Settings ***
15 | Library | resources.libraries.python.honeycomb.proxyARP.ProxyARPKeywords
16 | Documentation | Keywords used to test Honeycomb proxyARP.
17
18 *** Keywords ***
19 | Honeycomb configures proxyARP
20 | | [Documentation] | Uses Honeycomb API to configure proxyARP for a specific\
21 | | ... | destination IP range.
22 | | ...
23 | | ... | *Arguments:*
24 | | ... | - node - information about a DUT node. Type: dictionary
25 | | ... | - data - Configuration to use. Type: dictionary
26 | | ...
27 | | ... | *Example:*
28 | | ...
29 | | ... | \| Honeycomb configures proxyARP \| ${nodes['DUT1']} \| ${data} \|
30 | | [Arguments] | ${node} | ${data}
31 | | Configure proxyARP | ${node} | ${data}
32
33 | Honeycomb removes proxyARP configuration
34 | | [Documentation] | Uses Honeycomb API to remove existing proxyARP\
35 | | ... | IP range configuration.
36 | | ...
37 | | ... | *Arguments:*
38 | | ... | - node - information about a DUT node. Type: dictionary
39 | | ...
40 | | ... | *Example:*
41 | | ...
42 | | ... | \| Honeycomb removes proxyARP configuration \| ${nodes['DUT1']} \|
43 | | [Arguments] | ${node}
44 | | Remove proxyARP configuration | ${node}
45
46 | Honeycomb enables proxyARP on interface
47 | | [Documentation] | Uses Honeycomb API to enable the proxyARP\
48 | | ... | feature on an interface.
49 | | ...
50 | | ... | *Arguments:*
51 | | ... | - node - information about a DUT node. Type: dictionary
52 | | ... | - interface - name of an interface on the node. Type: string
53 | | ...
54 | | ... | *Example:*
55 | | ...
56 | | ... | \| Honeycomb enables proxyARP on interface \| ${nodes['DUT1']} \
57 | | ... | \| GigabitEthernet0/8/0 \|
58 | | [Arguments] | ${node} | ${interface}
59 | | Set proxyARP interface config | ${node} | ${interface} | enable
60
61 | Honeycomb disables proxyARP on interface
62 | | [Documentation] | Uses Honeycomb API to disable the proxyARP\
63 | | ... | feature on an interface.
64 | | ...
65 | | ... | *Arguments:*
66 | | ... | - node - information about a DUT node. Type: dictionary
67 | | ... | - interface - name of an interface on the node. Type: string
68 | | ...
69 | | ... | *Example:*
70 | | ...
71 | | ... | \| Honeycomb disables proxyARP on interface \| ${nodes['DUT1']} \
72 | | ... | \| GigabitEthernet0/8/0 \|
73 | | [Arguments] | ${node} | ${interface}
74 | | Set proxyARP interface config | ${node} | ${interface} | disable