-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openconfig:main' into otg-rt1.4
- Loading branch information
Showing
12 changed files
with
610 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# TR-6.1: Remote Syslog feature config | ||
|
||
## Summary | ||
|
||
Verify configuration of remote syslog host (server) in DEFAULT and non-default | ||
VRF. | ||
|
||
## Procedure | ||
|
||
* Connect DUT port-1 with OTG port-1 and DUT port-2 with OTG port-2 | ||
* Configure DUT $VRF-name network-instance and OTG with: | ||
* interface(port-1), interface(port-2) with IPv4 and IPv6 address | ||
* static host routes to syslog server addresses pointing OTG | ||
interface(port-1) IP | ||
* loopback interface with IPv4 and IPv6 address and netmasks of /32, /64 | ||
respectively | ||
* Configure syslog servers DUT | ||
* Configure 1st IPv4 Syslog remote hosts in $VRF-name with: | ||
* facility “local7” and severity “debug” | ||
* (TODO when OC model published) compliance to RFC5424 (structured) | ||
* source address equal to IPv4 address of loopback interface | ||
* Configure 2nd IPv4 Syslog remote hosts in $VRF-name with: | ||
* facility “local7” and severity “critical” | ||
* (TODO when OC model published) compliance to RFC3164 (BSD/original) | ||
* source address equal to IPv4 address of loopback interface | ||
* Configure 3rd IPv6 Syslog remote hosts in $VRF-name with: | ||
* non-standard remote port | ||
* facility “local1” and severity “debug” | ||
* (TODO when OC model published) compliance to RFC5424 (structured) | ||
* source address equal to IPv6 address of loopback interface | ||
* Configure 4th IPv6 Syslog remote hosts in $VRF-name with: | ||
* facility “local7” and severity “critical” | ||
* (TODO when OC model published) compliance to RFC3164 (BSD/original) | ||
* source address equal to IPv6 address of loopback interface | ||
* Test Procedure | ||
* Read configuration of all 4 servers, verify it matches intent | ||
* enable packet capture on OTG port-1 | ||
* disable OTG port-2 so DUT interface(port-2) goes down, which should | ||
generate log | ||
* Observe on OTG capture: | ||
* Syslog packet w/ DstIP of host 1st and 4th and standard dstPort. | ||
* Syslog packet w/ DstIP of host 3rd and non-standard dstPort | ||
* Note: no packet w/ DstIP of 2nd host is expected. | ||
|
||
### Test Case #1 - Default network instance | ||
|
||
``` | ||
* Execute above procedure for $VRF-name = "DEFAULT" (default VRF) | ||
``` | ||
|
||
### Test Case #2 - Non-Default network instance | ||
|
||
``` | ||
* Execute above procedure for $VRF-name = "VRF-foo" | ||
``` | ||
|
||
## OpenConfig Path and RPC Coverage | ||
|
||
```yaml | ||
paths: | ||
## Config parameter coverage | ||
/system/logging/remote-servers/remote-server/config/host: | ||
/system/logging/remote-servers/remote-server/config/network-instance: | ||
/system/logging/remote-servers/remote-server/config/remote-port: | ||
/system/logging/remote-servers/remote-server/config/source-address: | ||
/system/logging/remote-servers/remote-server/selectors/selector/config/facility: | ||
/system/logging/remote-servers/remote-server/selectors/selector/config/severity: | ||
|
||
## Telemetry parameter coverage | ||
/system/logging/remote-servers/remote-server/state/host: | ||
/system/logging/remote-servers/remote-server/state/network-instance: | ||
/system/logging/remote-servers/remote-server/state/remote-port: | ||
/system/logging/remote-servers/remote-server/state/source-address: | ||
/system/logging/remote-servers/remote-server/selectors/selector/state/facility: | ||
/system/logging/remote-servers/remote-server/selectors/selector/state/severity: | ||
|
||
rpcs: | ||
gnmi: | ||
gNMI.Get: | ||
gNMI.Subscribe: | ||
gNMI.Set: | ||
``` | ||
## DUT | ||
FFF |
19 changes: 19 additions & 0 deletions
19
feature/system/logging/otg_tests/remote_syslog/metadata.textproto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# proto-file: github.com/openconfig/featureprofiles/proto/metadata.proto | ||
# proto-message: Metadata | ||
|
||
uuid: "1f83da73-9db4-43ae-a282-bc309ff64e0e" | ||
plan_id: "TR-6.1" | ||
description: "Remote Syslog feature config" | ||
testbed: TESTBED_DUT_ATE_2LINKS | ||
platform_exceptions: { | ||
platform: { | ||
vendor: ARISTA | ||
} | ||
deviations: { | ||
omit_l2_mtu: true | ||
interface_config_vrf_before_address: true | ||
interface_enabled: true | ||
default_network_instance: "default" | ||
static_protocol_name: "STATIC" | ||
} | ||
} |
Oops, something went wrong.