Commit 8b3c5d3f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - Firewall Agent:

- Fixed formatting of chain rules
parent ff0f2d41
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -83,11 +83,11 @@ class Chain:
            # chains and their removal might cause side effects on NFTables.
            # chains and their removal might cause side effects on NFTables.
            pass
            pass
        else:
        else:
            #chain_hook = str(self.chain).lower()
            chain_hook = str(self.chain).lower()
            parts = [
            parts = [
                'add', 'chain', self.family.value, self.table.value, self.chain,
                'add', 'chain', self.family.value, self.table.value, self.chain,
                '{',
                '{',
                'type', self.table.value, 'hook', self.chain, 'priority', 'raw', ';',
                'type', self.table.value, 'hook', chain_hook, 'priority', 'raw', ';',
                'policy', 'accept', ';',
                'policy', 'accept', ';',
                '}'
                '}'
            ]
            ]