summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-09-25 14:24:13 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-26 10:32:11 +0200
commita4d3daaaf0fdefa267376b2f06ce3e924d3ca055 (patch)
tree740d3489f86d4f35b0345e18deb1481131e6fd35 /tests/shell
parent3ab636b9ffd3f072d84e0f501aa50d1524ae45ea (diff)
tests: shell: Fix indenting in 0021prio_0
Pointless indenting doesn't increase readability, merely makes the script seem more complicated than it actually is. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rwxr-xr-xtests/shell/testcases/chains/0021prio_067
1 files changed, 33 insertions, 34 deletions
diff --git a/tests/shell/testcases/chains/0021prio_0 b/tests/shell/testcases/chains/0021prio_0
index ada1d92a..b6647ac2 100755
--- a/tests/shell/testcases/chains/0021prio_0
+++ b/tests/shell/testcases/chains/0021prio_0
@@ -47,51 +47,50 @@ do
done
hook=prerouting
- prioname=dstnat
- gen_chains $family $hook $prioname
+ prioname=dstnat
+ gen_chains $family $hook $prioname
hook=postrouting
- prioname=srcnat
- gen_chains $family $hook $prioname
+ prioname=srcnat
+ gen_chains $family $hook $prioname
done
family=arp
- $NFT add table $family x
- for hook in input output
- do
- prioname=filter
- gen_chains $family $hook $prioname
- done
+$NFT add table $family x
+for hook in input output
+do
+ prioname=filter
+ gen_chains $family $hook $prioname
+done
family=netdev
- $NFT add table $family x
- hook=ingress
- prioname=filter
- for i in -11 -10 0 10 11
- do
- offset=`format_offset $i`
- $NFT add chain $family x `chainname $hook $prioname $offset` "{ type filter hook $hook device lo priority $prioname $offset; }"
- done
+$NFT add table $family x
+hook=ingress
+prioname=filter
+for i in -11 -10 0 10 11
+do
+ offset=`format_offset $i`
+ $NFT add chain $family x `chainname $hook $prioname $offset` "{ type filter hook $hook device lo priority $prioname $offset; }"
+done
family=bridge
- $NFT add table $family x
- for hook in prerouting input forward output postrouting
- do
- prioname=filter
- gen_chains $family $hook $prioname
- done
-
- hook=prerouting
- prioname=dstnat
- gen_chains $family $hook $prioname
+$NFT add table $family x
+for hook in prerouting input forward output postrouting
+do
+ prioname=filter
+ gen_chains $family $hook $prioname
+done
- hook=output
- prioname=out
- gen_chains $family $hook $prioname
+hook=prerouting
+prioname=dstnat
+gen_chains $family $hook $prioname
- hook=postrouting
- prioname=srcnat
- gen_chains $family $hook $prioname
+hook=output
+prioname=out
+gen_chains $family $hook $prioname
+hook=postrouting
+prioname=srcnat
+gen_chains $family $hook $prioname