From 055a1b1d4ffad851c03284cb27271a3a77455077 Mon Sep 17 00:00:00 2001 From: Jibin Bao Date: Thu, 26 May 2022 10:04:09 +0800 Subject: [PATCH] move Test cases #6 to the end of TCs list --- doc/syslog/Syslog_Source_IP_test_plan.md | 48 ++++++++++++------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/doc/syslog/Syslog_Source_IP_test_plan.md b/doc/syslog/Syslog_Source_IP_test_plan.md index b5ea202ebe3..389bb9b550a 100644 --- a/doc/syslog/Syslog_Source_IP_test_plan.md +++ b/doc/syslog/Syslog_Source_IP_test_plan.md @@ -167,28 +167,7 @@ SERVER SOURCE PORT VRF 4. Check there is an error prompt such as: VRF exists in syslog config, it can not be disabled or removed. -### Test cases #6 - After Configure syslog server and save config, do cold/fast/warm reboot, check syslog config still work -1. Configure syslog server with VRF/Source: set/set like below: -``` -config syslog add 2.2.2.2 --source 1.1.1.1 --vrf default -config syslog add 3.3.3.3 --source 5.5.5.5 --vrf mgmt -config syslog add 2222::2222 --source 1111::1111 --vrf Vrf-data -``` -2. Check syslog config by show syslog, the result should like below: -``` -# show syslog -SERVER SOURCE PORT VRF ----------- ---------- ------ -------- -2.2.2.2 1.1.1.1 514 default -3.3.3.3 5.5.5.5 514 mgmt -2222::2222 1111::1111 514 Vrf-data -``` -3. Check the corresponding interface will send syslog message with port 514 and related source IP on dut -4. Save config and do cold/fast/warm reboot -5. Check Syslog config still work - - - ### Test cases #7 - Configure syslog server with invalid source IP + ### Test cases #6 - Configure syslog server with invalid source IP 1. Configure syslog server with invalid IP: ``` config syslog add 2.2.2.2 ---source 127.0.0.1 @@ -201,7 +180,7 @@ Error: Invalid value for "-s" / "--source": 127.0.0.1 is a loopback/multicast IP 4. Repeat step 1~3 with non-existing IP and multicast IP -### Test cases #8 - Configure syslog server with non-existing vrf +### Test cases #7 - Configure syslog server with non-existing vrf 1. Configure syslog server with non-existing vrf: ``` config syslog add 2222::2222 --vrf vrf-non @@ -210,4 +189,25 @@ config syslog add 2222::2222 --vrf vrf-non ``` Error: Invalid value for "-r" / "--vrf": invalid choice: vrf-non. (choose from default, Vrf-red) ``` - 3. Check the syslog config doesn't include relevant item \ No newline at end of file + 3. Check the syslog config doesn't include relevant item + + + ### Test cases #8 - After Configure syslog server and save config, do cold/fast/warm reboot, check syslog config still work +1. Configure syslog server with VRF/Source: set/set like below: +``` +config syslog add 2.2.2.2 --source 1.1.1.1 --vrf default +config syslog add 3.3.3.3 --source 5.5.5.5 --vrf mgmt +config syslog add 2222::2222 --source 1111::1111 --vrf Vrf-data +``` +2. Check syslog config by show syslog, the result should like below: +``` +# show syslog +SERVER SOURCE PORT VRF +---------- ---------- ------ -------- +2.2.2.2 1.1.1.1 514 default +3.3.3.3 5.5.5.5 514 mgmt +2222::2222 1111::1111 514 Vrf-data +``` +3. Check the corresponding interface will send syslog message with port 514 and related source IP on dut +4. Save config and do cold/fast/warm reboot +5. Check Syslog config still work