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

ixia-c example refactoring #1784

Closed
wants to merge 3 commits into from
Closed
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
2 changes: 1 addition & 1 deletion lab-examples/ixiac01/ipv4_forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func newConfig() (gosnappi.GosnappiApi, gosnappi.Config) {
eth.Dst().SetValue(dstMac)

ip.Src().SetValue("10.10.10.1")
ip.Dst().Increment().SetStart("10.20.20.1").SetStep("0.0.0.1").SetCount(5)
ip.Dst().Increment().SetStart("20.20.20.1").SetStep("0.0.0.1").SetCount(5)

tcp.SrcPort().SetValue(3250)
tcp.DstPort().Decrement().SetStart(8070).SetStep(2).SetCount(10)
Expand Down
4 changes: 2 additions & 2 deletions lab-examples/ixiac01/ixiac01.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ topology:
kind: keysight_ixia-c-one
image: ghcr.io/open-traffic-generator/ixia-c-one:0.0.1-2755
exec:
- "./ifcfg add eth1 10.1.1.1 24"
- "./ifcfg add eth2 10.2.2.1 24"
- "./ifcfg add eth1 1.1.1.1 24"
- "./ifcfg add eth2 2.2.2.1 24"
Comment on lines +9 to +10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why chanigng 10 for 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the file ipv4_forwarding.go test setup is the following, wich is correct, but in the scripts IP addresses are wrong.
Test IPv4 Forwarding with

  • Endpoints: OTG 1.1.1.1 -----> 1.1.1.2 DUT 2.2.2.1 ------> OTG 2.2.2.2
  • Static Route on DUT: 20.20.20.0/24 -> 2.2.2.2
  • TCP flow from OTG: 10.10.10.1 -> 20.20.20.1+

srl:
kind: srl
image: ghcr.io/nokia/srlinux
Expand Down
9 changes: 5 additions & 4 deletions lab-examples/ixiac01/srl.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
set /interface ethernet-1/1 subinterface 0 ipv4 admin-state enable
set /interface ethernet-1/1 subinterface 0 ipv4 address 10.1.1.2/24
set /interface ethernet-1/2 subinterface 0 ipv4 address 10.2.2.2/24
set /interface ethernet-1/1 subinterface 0 ipv4 address 1.1.1.2/24
set /interface ethernet-1/2 subinterface 0 ipv4 admin-state enable
set /interface ethernet-1/2 subinterface 0 ipv4 address 2.2.2.2/24
set /network-instance default interface ethernet-1/1.0
set /network-instance default interface ethernet-1/2.0

set /network-instance default next-hop-groups group group1 nexthop 1 ip-address 10.2.2.1 admin-state enable
set /network-instance default static-routes route 10.20.20.0/24 next-hop-group group1 admin-state enable
set /network-instance default next-hop-groups group group1 nexthop 1 ip-address 2.2.2.1 admin-state enable
set /network-instance default static-routes route 20.20.20.0/24 next-hop-group group1 admin-state enable