From 5cacddef57d9769410dcf980887f2226537df654 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Tue, 20 Aug 2024 15:24:36 +0900 Subject: [PATCH] gh-87 minor fixes to proxy cicd tests --- cicd/common.sh | 4 ++++ cicd/httpshostproxy/config.sh | 2 +- cicd/httpsproxy/config.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cicd/common.sh b/cicd/common.sh index 807aa8870..a0004468c 100644 --- a/cicd/common.sh +++ b/cicd/common.sh @@ -557,6 +557,10 @@ function create_lb_rule() { echo "$1: loxicmd create lb ${args[*]}" $dexec $1 loxicmd create lb ${args[*]} + if [[ ${args[*]} == *"--mode=fullproxy"* ]]; then + return + fi + hook=$($dexec llb1 ntc filter show dev eth0 ingress | grep tc_packet_hook) if [[ $hook != *"tc_packet_hook"* ]]; then echo "ERROR : No hook point found"; diff --git a/cicd/httpshostproxy/config.sh b/cicd/httpshostproxy/config.sh index 80df94a13..192e9058a 100755 --- a/cicd/httpshostproxy/config.sh +++ b/cicd/httpshostproxy/config.sh @@ -6,7 +6,7 @@ echo "#########################################" echo "Spawning all hosts" echo "#########################################" -spawn_docker_host --dock-type loxilb --dock-name llb1 +spawn_docker_host --dock-type loxilb --dock-name llb1 --extra-args "--proxyonlymode" spawn_docker_host --dock-type host --dock-name l3h1 spawn_docker_host --dock-type host --dock-name l3ep1 spawn_docker_host --dock-type host --dock-name l3ep2 diff --git a/cicd/httpsproxy/config.sh b/cicd/httpsproxy/config.sh index 0d3ce4b2d..b0b603428 100755 --- a/cicd/httpsproxy/config.sh +++ b/cicd/httpsproxy/config.sh @@ -6,7 +6,7 @@ echo "#########################################" echo "Spawning all hosts" echo "#########################################" -spawn_docker_host --dock-type loxilb --dock-name llb1 +spawn_docker_host --dock-type loxilb --dock-name llb1 --extra-args "--proxyonlymode" spawn_docker_host --dock-type host --dock-name l3h1 spawn_docker_host --dock-type host --dock-name l3ep1 spawn_docker_host --dock-type host --dock-name l3ep2