Skip to content

Commit

Permalink
move Test cases sonic-net#6 to the end of TCs list
Browse files Browse the repository at this point in the history
  • Loading branch information
JibinBao committed May 26, 2022
1 parent 12f541e commit 055a1b1
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions doc/syslog/Syslog_Source_IP_test_plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
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

0 comments on commit 055a1b1

Please sign in to comment.