Skip to content

Commit a7f4092

Browse files
Merge branch 'main' into MGT-1
2 parents d597e8d + 19de356 commit a7f4092

File tree

119 files changed

+11960
-849
lines changed

Some content is hidden

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

119 files changed

+11960
-849
lines changed

.github/workflows/test_gap_analysis.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/test_gap_analysis.yaml
21
name: FNT Gap Analysis
32

43
on:
@@ -10,29 +9,36 @@ permissions: {}
109
jobs:
1110
gap_analysis_test:
1211
runs-on: ubuntu-latest
12+
env:
13+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
1314
permissions:
1415
contents: read
1516
pull-requests: read
1617
steps:
18+
- name: Show skip message
19+
if: ${{ env.GEMINI_API_KEY == '' }}
20+
run: echo "No access to Gemini, skipping test."
1721
- name: Checkout code
22+
if: ${{ env.GEMINI_API_KEY != '' }}
1823
uses: actions/checkout@v4
1924
with:
2025
fetch-depth: 0 # Needed for changed-files action to diff against base branch
2126

2227
- name: Set up Go
28+
if: ${{ env.GEMINI_API_KEY != '' }}
2329
uses: actions/setup-go@v5
2430
with:
2531
go-version: '1.21'
2632

2733
- name: Get changed files
34+
if: ${{ env.GEMINI_API_KEY != '' }}
2835
id: changed-files-pr
2936
uses: tj-actions/changed-files@v44
3037
with:
3138
separator: ','
3239

3340
- name: Run Gap Analysis Script
34-
env:
35-
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
41+
if: ${{ env.GEMINI_API_KEY != '' }}
3642
run: |
3743
echo "--- Building and Running FNT Gap Analysis ---"
3844
go build -o gap-analyzer tools/gap-analyzer/read_fnttests.go

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)