-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgenie_parsers.robot
37 lines (25 loc) · 1.02 KB
/
genie_parsers.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
# Genie Devnet Lab-2: Execute show commands and parse outputs
# ===========================================================
*** Settings ***
Library ats.robot.pyATSRobot
Library genie.libs.robot.GenieRobot
Library unicon.robot.UniconRobot
*** Variables ***
# Defining variables that can be used elsewhere in the test data.
${testbed} default_testbed.yaml
*** Test Cases ***
# Creating testcases using available Genie, pyATS & Unicon keywords
# Connect to UUT device using CLI
connect to UUT device
use genie testbed "${testbed}"
connect to devices "uut"
# Load parser "ShowBgpProcessVrfAll"
# Execute 'show bgp process vrf all'
# Parse the output of the show command using the parser loaded above
execute and parse 'show bgp process vrf all' on UUT
parse "show bgp process vrf all" on device "uut"
# Load parser "ShowModule"
# Execute 'show module'
# Parse the output of the show command using the parser loaded above
execute and parse 'show platform' on UUT
parse "show module" on device "uut"