]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: Fix indenting in 0021prio_0
authorPhil Sutter <phil@nwl.cc>
Tue, 25 Sep 2018 12:24:13 +0000 (14:24 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 26 Sep 2018 08:32:11 +0000 (10:32 +0200)
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>
tests/shell/testcases/chains/0021prio_0

index ada1d92a047a0fe30f8bc15008eab5cefb99a436..b6647ac24ad103158ed302cc390f7539710a5141 100755 (executable)
@@ -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