Beispiel #1
0
    def flush_entries(self, namespace):
        """Flush all conntrack entries within the namespace

        :param namespace: namespace to flush
        :return: None
        """
        nl_lib.flush_entries(namespace)
    def flush_entries(self, namespace):
        """Flush all conntrack entries within the namespace

        :param namespace: namespace to flush
        :return: None
        """
        nl_lib.flush_entries(namespace)
 def test_flush_entries(self):
     namespace = self.useFixture(net_helpers.NamespaceFixture()).name
     self._create_entries(namespace, CONNTRACK_CMDS)
     nl_lib.flush_entries(namespace)
     entries_list = nl_lib.list_entries(namespace)
     self.assertEqual((), entries_list)
 def test_flush_entries(self):
     namespace = self.useFixture(net_helpers.NamespaceFixture()).name
     _create_entries(namespace, self.CONNTRACK_CMDS)
     nl_lib.flush_entries(namespace)
     entries_list = nl_lib.list_entries(namespace)
     self.assertEqual((), entries_list)