Add the given chain if it is not already present
(self, rule)
| 187 | self.get_unseen() |
| 188 | |
| 189 | def add_chain(self, rule): |
| 190 | """ Add the given chain if it is not already present """ |
| 191 | if not self.has_chain(rule.get_table(), rule.get_chain()): |
| 192 | if rule.get_chain(): |
| 193 | CsHelper.execute("iptables -t %s -N %s" % (rule.get_table(), rule.get_chain())) |
| 194 | self.chain.add(rule.get_table(), rule.get_chain()) |
| 195 | |
| 196 | def del_standard(self): |
| 197 | """ Del rules that are there but should not be deleted |