13ff8a6ad218c08eec2522129639dbc05af6a7f2
[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 Library           SSHLibrary
5 Resource          ../../../../libraries/SSHKeywords.robot
6 Resource          Variables.robot
7
8 *** Keywords ***
9 Start Connections
10     [Documentation]    Establishes connections to remote VMs.
11     SSHLibrary.Open Connection    ${GBP1}    alias=GBP1_CONNECTION
12     SSHKeywords.Flexible Mininet Login
13     SSHLibrary.Open Connection    ${GBP2}    alias=GBP2_CONNECTION
14     SSHKeywords.Flexible Mininet Login
15     SSHLibrary.Open Connection    ${GBP3}    alias=GBP3_CONNECTION
16     SSHKeywords.Flexible Mininet Login
17
18 Close Connections
19     [Documentation]    Closes connections to remote VMs.
20     Switch Connection    GBP1_CONNECTION
21     SSHLibrary.Close Connection
22     Switch Connection    GBP2_CONNECTION
23     SSHLibrary.Close Connection
24     Switch Connection    GBP3_CONNECTION
25     SSHLibrary.Close Connection