-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResource.robot
More file actions
67 lines (41 loc) · 2.14 KB
/
Resource.robot
File metadata and controls
67 lines (41 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
*** Settings ***
Documentation Resource file containing all the PYTHON API implementations.
Library Setup.py
Library BGPSetup.py
Library Collections
*** Keywords ***
Building Network Topology with specified number of devices
Log To Console Building Network Topology
${TopoDet}= Run Keyword and Continue On Failure buildNetworkTopology
${interface_list}= Get From Dictionary ${TopoDet} Interfaceslist
Set Suite Variable ${interface_list}
${network_list}= Get From Dictionary ${TopoDet} Nwlist
Set Suite Variable ${network_list}
Booting up the devices
Log To Console Booting devices
Run Keyword and Continue On Failure bootUpDevices
Get IPaddress List that should be assigned to DUT interfaces for a given network
Log To Console Get IPaddress List that should be assigned to DUT interfaces for a given network
${intfaddress}= Run Keyword and Continue On Failure getIPaddressList ${network_list} ${interface_list}
Set Suite Variable ${intfaddress}
Set Topology file with all device details
Log To Console Set Topology file that should be accessed to set configure devices
Run Keyword and Continue On Failure setTopologyFile ${interface_list} ${intfaddress}
Configure IPaddress on DUT
Log To Console Configure IPaddress on DUT
Run Keyword and Continue On Failure configureIPaddress
Run Ping test
Log To Console Running ping test
Run Keyword and Continue On Failure pingTest
Set all the required parameters for BGP configuration
Log To Console Setting BGP parameters
Run Keyword and Continue On Failure setBGPParameters
Set all the peer details and load it into json file
Log To Console Set BGP peer details
Run Keyword and Continue On Failure setPeersDetails
Create BGP Neighbor for DUT
Log To Console creating BGPV4 neighbors
Run Keyword and Continue On Failure createBGPNeighbor all
Check if BGP neighbors are set
Log To Console Checking if BGPV4 neighbors are set
Run Keyword and Continue On Failure checkBGPNeighbors all