Update Robot Framework format - step 7
[integration/test.git] / csit / suites / groupbasedpolicy / GBP / 3-node / Connections.robot
1 *** Settings ***
2 Documentation       Creates/closes SSH connections to all GBP nodes. Existing connections
3 ...                 can be identified by aliases.
4
5 Library             SSHLibrary
6 Resource            ../../../../libraries/SSHKeywords.robot
7 Resource            Variables.robot
8
9
10 *** Keywords ***
11 Start Connections
12     [Documentation]    Establishes connections to remote VMs.
13     SSHLibrary.Open Connection    ${GBP1}    alias=GBP1_CONNECTION
14     SSHKeywords.Flexible Mininet Login
15     SSHLibrary.Open Connection    ${GBP2}    alias=GBP2_CONNECTION
16     SSHKeywords.Flexible Mininet Login
17     SSHLibrary.Open Connection    ${GBP3}    alias=GBP3_CONNECTION
18     SSHKeywords.Flexible Mininet Login
19
20 Close Connections
21     [Documentation]    Closes connections to remote VMs.
22     Switch Connection    GBP1_CONNECTION
23     SSHLibrary.Close Connection
24     Switch Connection    GBP2_CONNECTION
25     SSHLibrary.Close Connection
26     Switch Connection    GBP3_CONNECTION
27     SSHLibrary.Close Connection