Skip to content

Commit 7be6c3d

Browse files
authored
Merge branch 'main' into RT-7.6
2 parents 8333f05 + 19b56cb commit 7be6c3d

File tree

134 files changed

+9293
-2154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+9293
-2154
lines changed

.github/workflows/required_approvals.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ jobs:
2222
approval_mode: ALL
2323
pr_number: ${{ github.event.pull_request.number }}
2424
require_all_approvals_latest_commit: false
25+
limit_org_teams_to_codeowners_file: true
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: FNT Gap Analysis
2+
3+
on:
4+
pull_request:
5+
# No paths filter for testing triggers.
6+
7+
permissions: {}
8+
9+
jobs:
10+
gap_analysis_test:
11+
runs-on: ubuntu-latest
12+
env:
13+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
14+
permissions:
15+
contents: read
16+
pull-requests: read
17+
steps:
18+
- name: Show skip message
19+
if: ${{ env.GEMINI_API_KEY == '' }}
20+
run: echo "No access to Gemini, skipping test."
21+
- name: Checkout code
22+
if: ${{ env.GEMINI_API_KEY != '' }}
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0 # Needed for changed-files action to diff against base branch
26+
27+
- name: Set up Go
28+
if: ${{ env.GEMINI_API_KEY != '' }}
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version: '1.21'
32+
33+
- name: Get changed files
34+
if: ${{ env.GEMINI_API_KEY != '' }}
35+
id: changed-files-pr
36+
uses: tj-actions/changed-files@v44
37+
with:
38+
separator: ','
39+
40+
- name: Run Gap Analysis Script
41+
if: ${{ env.GEMINI_API_KEY != '' }}
42+
run: |
43+
echo "--- Building and Running FNT Gap Analysis ---"
44+
go build -o gap-analyzer tools/gap-analyzer/read_fnttests.go
45+
./gap-analyzer --changed-files="${{ steps.changed-files-pr.outputs.all_changed_files }}"

feature/acl/otg_tests/acl_large_scale/acl_large_scale_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ func testv4AddressScale(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDe
918918
}
919919

920920
for _, acl := range aclConfigs {
921-
if deviations.ConfigAclOcUnsupported(dut) {
921+
if deviations.ConfigACLOcUnsupported(dut) {
922922
switch dut.Vendor() {
923923
case ondatra.ARISTA:
924924
aclTarfficPolicy := cfgplugins.ACLTrafficPolicyParams{
@@ -945,7 +945,7 @@ func testv4AddressScale(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDe
945945
}
946946

947947
// Verification of ACL on interfaces as Ingress & Egress
948-
if !deviations.ConfigAclOcUnsupported(dut) {
948+
if !deviations.ConfigACLOcUnsupported(dut) {
949949
var expectedACLs = []struct {
950950
Name string
951951
Ingress bool
@@ -1152,7 +1152,7 @@ func testv6AddressScale(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDe
11521152
}
11531153

11541154
for _, acl := range aclConfigs {
1155-
if deviations.ConfigAclOcUnsupported(dut) {
1155+
if deviations.ConfigACLOcUnsupported(dut) {
11561156
switch dut.Vendor() {
11571157
case ondatra.ARISTA:
11581158
aclTarfficPolicy := cfgplugins.ACLTrafficPolicyParams{
@@ -1179,7 +1179,7 @@ func testv6AddressScale(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDe
11791179
}
11801180

11811181
// Verify ACL is applied on the interfaces
1182-
if !deviations.ConfigAclOcUnsupported(dut) {
1182+
if !deviations.ConfigACLOcUnsupported(dut) {
11831183
var expectedACLs = []struct {
11841184
Name string
11851185
Ingress bool
@@ -1317,7 +1317,7 @@ func testv6AddressScale(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDe
13171317
}
13181318

13191319
func testv4PrefixList(t *testing.T, dut *ondatra.DUTDevice, ate *ondatra.ATEDevice, otgConfig *otg.OTG, config gosnappi.Config) {
1320-
if !deviations.ConfigAclOcUnsupported(dut) {
1320+
if !deviations.ConfigACLOcUnsupported(dut) {
13211321
// Remove the ACL configs from interface
13221322
removeAClOnInterface(t, dut, "port1")
13231323
removeAClOnInterface(t, dut, "port2")

0 commit comments

Comments
 (0)