forked from bachng2017/RENAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.robot
54 lines (40 loc) · 1.47 KB
/
main.robot
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
# -*- coding: utf-8 -*-
# $Date: 2018-03-20 00:33:18 +0900 (火, 20 3 2018) $
# $Rev: 822 $
# $Ver: $
# $Author: $
# Basic setting
*** Setting ***
Documentation item03: best path testing
Metadata Log File [.|${CURDIR}/result]
Suite Setup Lab Setup
Suite Teardown Lab Teardown
# Common setting
Resource lab.robot
# Variable setting
*** Variables ***
*** Test Cases ***
01. Cabling
No Operation
02. Load config to DUT
Router.Switch target
Router.Load Config set target.conf vars=INTERFACE=et-0/0/2
03. Load tester config
Tester.Switch tester
Tester.Load Traffic apply=${FALSE}
Sleep 30s
04. Confirm the status
${num}= Router.Number Of BGP Neighbor
Should Be Equal ${num} ${10}
Router.Cmd show bgp summary
05. Flap interface once
Router.Flap Interface et-0/0/2.2 30s
Sleep 120s
06. Collect route information
${show4}= Router.Cmd show route 1/8 detail
${show6}= Router.Cmd show route 1::/16 detail
Set Suite Variable ${show4}
Set Suite Variable ${show6}
07. Get best path result
Create Best Path Select Data ${show4} best4.xlsx
Create Best Path Select Data ${show6} best6.xlsx