Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
biplamal committed Dec 10, 2024
1 parent 01a46c9 commit 0fad91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ gen_config_k8s_test_const() {
txMac=$(kubectl exec -n ixia-c otg-port-eth1 -c otg-port-eth1-protocol-engine -- ifconfig eth0 | grep ether | sed 's/ */_/g' | cut -d_ -f3)
rxMac=$(kubectl exec -n ixia-c otg-port-eth2 -c otg-port-eth2-protocol-engine -- ifconfig eth0 | grep ether | sed 's/ */_/g' | cut -d_ -f3)
# drop UDP packets on given dst port
kubectl exec -n ixia-c otg-port-eth2 -c otg-port-eth2-protocol-engine -- lsb_release -sc
kubectl exec -n ixia-c otg-port-eth2 -c otg-port-eth2-protocol-engine -- apt-get -y update
kubectl exec -n ixia-c otg-port-eth2 -c otg-port-eth2-protocol-engine -- apt-get install -y iptables
kubectl exec -n ixia-c otg-port-eth2 -c otg-port-eth2-protocol-engine -- iptables -A INPUT -p udp --destination-port ${rxUdpPort} -j DROP
Expand Down

0 comments on commit 0fad91a

Please sign in to comment.