Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.1.0 32 #161

Merged
merged 13 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 156 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
name: CI

env:
PYTHON_VERSION: "3.8"
GO_VERSION: "1.19"

on:
push:

jobs:
examples_curl:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Deploy Ixia-C
run: |
sed -n '58,61p' readme.md > deploy.sh
sh deploy.sh
- name: Setup and run tests
run: |
sed -n '90,97p' readme.md > test.sh
sh test.sh
- name: Get container logs
if: always()
run: |
cd conformance && ./do.sh topo logs
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
with:
name: examples_curl
path: |
conformance/logs

examples_go_py:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Deploy Ixia-C
run: |
sed -n '58,61p' readme.md > deploy.sh
sh deploy.sh
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup and run tests
run: |
sed -n '67,78p' readme.md > test.sh
sh test.sh
- name: Get container logs
if: always()
run: |
cd conformance && ./do.sh topo logs
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
with:
name: examples_go_py
path: |
conformance/logs

deployments_k8s:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Cluster
run: |
cd deployments/k8s
sed -n '26,34p' readme.md > setup-cluster.sh
sh setup-cluster.sh
- name: Download images
run: |
cd deployments/k8s
sed -n '42,49p' readme.md > download-images.sh
sh download-images.sh
- name: Setup Pods and Services
run: |
cd deployments/k8s
sed -n '61,64p' readme.md > setup-pods-services.sh
sh setup-pods-services.sh
- name: Setup tests
run: |
cd deployments/k8s
sed -n '75,77p' readme.md > setup-tests.sh
sh setup-tests.sh
- name: Run tests
run: |
cd deployments/k8s
sed -n '85,86p' readme.md > run-tests.sh
sh run-tests.sh

deployments_k8s_network_emulation:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Cluster
run: |
sed -n '49,60p' deployments/k8s/network-emulation/readme.md > setup-cluster.sh
sh setup-cluster.sh
- name: Download images
run: |
sed -n '66,91p' deployments/k8s/network-emulation/readme.md > download-images.sh
sh download-images.sh
- name: Setup Meshnet
run: |
sed -n '97,105p' deployments/k8s/network-emulation/readme.md > setup-meshnet.sh
sh setup-meshnet.sh
- name: Setup Interfaces
run: |
sed -n '113,118p' deployments/k8s/network-emulation/readme.md > setup-interfaces.sh
sh setup-interfaces.sh
- name: Setup Pods and Services
run: |
sed -n '124,131p' deployments/k8s/network-emulation/readme.md > setup-pods-services.sh
sh setup-pods-services.sh
- name: Setup and run tests
run: |
sed -n '141,143p' deployments/k8s/network-emulation/readme.md > test.sh
sh test.sh
- name: Cleanup
run: |
sed -n '153,157p' deployments/k8s/network-emulation/readme.md > cleanup.sh
sh cleanup.sh
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "snappi-tests"]
path = snappi-tests
url = https://github.com/open-traffic-generator/snappi-tests.git
[submodule "conformance"]
path = conformance
url = https://github.com/open-traffic-generator/conformance.git
8 changes: 4 additions & 4 deletions deployments/k8s/bases/otg-controller/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
- args:
- --accept-eula
- --debug
image: ixia-c-controller:latest
image: keng-controller:latest
imagePullPolicy: IfNotPresent
name: ixia-c-controller
name: keng-controller
ports:
- containerPort: 8443
name: https-port
Expand All @@ -38,9 +38,9 @@ spec:
- -http-server
- https://localhost:8443
- --debug
image: ixia-c-gnmi-server:latest
image: otg-gnmi-server:latest
imagePullPolicy: IfNotPresent
name: ixia-c-gnmi-server
name: otg-gnmi-server
ports:
- containerPort: 50051
name: gnmi-port
Expand Down
14 changes: 7 additions & 7 deletions deployments/k8s/components/images/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

# Release: https://github.com/open-traffic-generator/ixia-c/releases/tag/v0.0.1-4554
# Release: https://github.com/open-traffic-generator/ixia-c/releases/tag/v0.1.0-3
images:
- name: ixia-c-controller
newName: ghcr.io/open-traffic-generator/ixia-c-controller
newTag: "0.0.1-4554"
- name: ixia-c-gnmi-server
newName: ghcr.io/open-traffic-generator/ixia-c-gnmi-server
newTag: "1.12.7"
- name: keng-controller
newName: ghcr.io/open-traffic-generator/keng-controller
newTag: "0.1.0-3"
- name: otg-gnmi-server
newName: ghcr.io/open-traffic-generator/otg-gnmi-server
newTag: "1.13.0"
- name: ixia-c-traffic-engine
newName: ghcr.io/open-traffic-generator/ixia-c-traffic-engine
newTag: "1.6.0.85"
18 changes: 9 additions & 9 deletions deployments/k8s/network-emulation/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ module ipfwd

go 1.20

require github.com/open-traffic-generator/snappi/gosnappi v0.11.6
require github.com/open-traffic-generator/snappi/gosnappi v0.13.0

require (
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/grpc v1.54.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/grpc v1.58.3 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v2 v2.2.3 // indirect
)
Loading