Skip to content

Commit

Permalink
Merge branch 'openconfig:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rszarecki authored Jan 31, 2024
2 parents 2118500 + 3db1cc4 commit 81ad7f1
Show file tree
Hide file tree
Showing 225 changed files with 14,820 additions and 3,204 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
exit 1
fi
- name: Get revive
run: go install github.com/mgechev/revive@latest
run: go install github.com/mgechev/revive@v1.3.4
- name: Run revive
run: revive ./...
- name: Get staticcheck
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/nosimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: NOSImage validation script

on:
push:
branches: [ main ]
pull_request:
schedule:
- cron: "49 0 * * *"

jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
cache: false
- name: Generate Examples and Check No Diff
run: |
cd tools/nosimage
go run example/generate_example.go -file-path example/example_nosimageprofile.textproto
go run example/generate_example.go -file-path example/example_nosimageprofile_invalid.textproto -invalid
git diff --exit-code --ignore-all-space --ignore-blank-lines
- name: Validate Good Example
run: |
cd tools/nosimage
go run validate/validate.go -file example/example_nosimageprofile.textproto; rm -rf tmp
- name: Validate Bad Example
run: |
cd tools/nosimage
if go run validate/validate.go -file example/example_nosimageprofile_invalid.textproto; then
echo "Validation passed, but failure expected"
exit 1
fi
rm -rf tmp
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ kne create topologies/kne/arista/ceos/topology.textproto
2. Run a sample test:

```
go test ./feature/system/tests/... -kne-topo $PWD/topologies/kne/arista/ceos/topology.textproto -vendor_creds ARISTA/admin/admin
go test ./feature/example/tests/... -kne-topo $PWD/topologies/kne/arista/ceos/topology.textproto -vendor_creds ARISTA/admin/admin
```

3. Cleanup:
Expand Down
1 change: 1 addition & 0 deletions cloudbuild/virtual.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function metadata_kne_topology() {
kne_topology_file["TESTBED_DUT_ATE_4LINKS"]="${topo_prefix}/dutate.textproto"
kne_topology_file["TESTBED_DUT_ATE_9LINKS_LAG"]="${topo_prefix}/dutate_lag.textproto"
kne_topology_file["TESTBED_DUT_DUT_ATE_2LINKS"]="${topo_prefix}/dutdutate.textproto"
kne_topology_file["TESTBED_DUT_ATE_8LINKS"]="${topo_prefix}/dutate.textproto"
for p in "${!kne_topology_file[@]}"; do
if grep -q "testbed.*${p}$" "${metadata_test_path}"/metadata.textproto; then
echo "${kne_topology_file[${p}]}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# RT-4.10: AFTs Route Summary

## Summary

IPv4/IPv6 unicast AFTs route summary for ISIS and BGP protocol

## Procedure

Configure DUT:port1 for an IS-IS session with ATE:port1
* Validate total number of entries of AFT for IPv4 and IPv6

Establish eBGP sessions between ATE:port1 and DUT:port1 and another between ATE:port2 and DUT:port2
* Configure Route-policy under BGP peer-group address-family
* Advertise prefixes from ATE port-1, observe received prefixes at ATE port-2 for IPv4 and IPv6
* Validate total number of entries of AFT for IPv4 and IPv6

## Config Parameter Coverage


## Telemetry Parameter Coverage

/network-instances/network-instance/afts/aft-summaries/ipv4-unicast/protocols/protocol/state/counters/aft-entries
/network-instances/network-instance/afts/aft-summaries/ipv6-unicast/protocols/protocol/state/counters/aft-entries

## Protocol/RPC Parameter Coverage

BGP
IS-IS

## Minimum DUT Platform Requirement

vRX

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# proto-file: third_party/openconfig/featureprofiles/proto/metadata.proto
# proto-message: Metadata

uuid: "ef34466c-37da-4133-8d03-40ebe2a5168a"
plan_id: "RT-4.10"
description: "AFTs Route Summary"
testbed: TESTBED_DUT_ATE_2LINKS
platform_exceptions: {
platform: {
vendor: NOKIA
}
deviations: {
isis_multi_topology_unsupported: true
isis_interface_level1_disable_required: true
missing_isis_interface_afi_safi_enable: true
isis_restart_suppress_unsupported: true
explicit_port_speed: true
explicit_interface_in_default_vrf: true
missing_value_for_defaults: true
interface_enabled: true
}
}
platform_exceptions: {
platform: {
vendor: CISCO
}
deviations: {
ipv4_missing_enabled: true
isis_interface_level1_disable_required: true
isis_single_topology_required: true
}
}
platform_exceptions: {
platform: {
vendor: ARISTA
}
deviations: {
omit_l2_mtu: true
missing_value_for_defaults: true
interface_enabled: true
default_network_instance: "default"
isis_instance_enabled_required: true
isis_interface_afi_unsupported: true
route_policy_under_afi_unsupported: true
}
}

Loading

0 comments on commit 81ad7f1

Please sign in to comment.