42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
*** Settings ***
|
|
Library OperatingSystem
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
|
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
|
Library Custometest
|
|
Library SSHLibrary
|
|
|
|
*** Test Cases ***
|
|
wan_nat-dnat-00001
|
|
Open Connection 192.168.40.156
|
|
SSHLibrary.Login root Xxg-PUB<>90
|
|
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
|
|
${output} read delay=1s
|
|
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
|
|
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
|
|
|
|
wan_nat-dnat-00002
|
|
Open Connection 192.168.40.156
|
|
SSHLibrary.Login root Xxg-PUB<>90
|
|
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
|
|
${output} read delay=1s
|
|
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
|
|
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
|
|
|
|
wan_nat-dnat-00003
|
|
Open Connection 192.168.40.156
|
|
SSHLibrary.Login root Xxg-PUB<>90
|
|
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
|
|
${output} read delay=1s
|
|
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
|
|
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
|
|
|
|
wan_nat-dnat-00004
|
|
Open Connection 192.168.40.156
|
|
SSHLibrary.Login root Xxg-PUB<>90
|
|
Write tcpdump -n -nn -i ppp0 |grep 192.168.50.7
|
|
${output} read delay=1s
|
|
Should Contain ${output} 192.168.50.7.52640 > 10.10.120.250.80
|
|
Should Contain ${output} 10.10.120.250.80 > 192.168.50.7.52640
|