Ejemplo n.º 1
0
    def setup_config(self, args=None):
        if args is None:
            args = []
        # force option enabled to make sure non-empty namespaces are
        # cleaned up and deleted
        args.append('--force')

        self.conf = netns_cleanup.setup_conf()
        self.conf.set_override('interface_driver', TEST_INTERFACE_DRIVER)
        self.config_parse(conf=self.conf, args=args)
Ejemplo n.º 2
0
    def setup_config(self, args=None):
        if args is None:
            args = []
        # force option enabled to make sure non-empty namespaces are
        # cleaned up and deleted
        args.append('--force')

        self.conf = netns_cleanup.setup_conf()
        self.conf.set_override('interface_driver', TEST_INTERFACE_DRIVER)
        self.config_parse(conf=self.conf, args=args)
Ejemplo n.º 3
0
 def setup_config(self, args=None):
     self.conf = netns_cleanup.setup_conf()
     super(TestNETNSCLIConfig, self).setup_config(args=args)
Ejemplo n.º 4
0
 def setup_config(self, args=None):
     self.conf = netns_cleanup.setup_conf()
     super(TestNETNSCLIConfig, self).setup_config(args=args)
Ejemplo n.º 5
0
 def test_setup_conf(self):
     expected_opts = interface.OPTS
     conf = util.setup_conf()
     self.assertTrue(all([opt.name in conf for opt in expected_opts]))
Ejemplo n.º 6
0
 def test_setup_conf(self):
     expected_opts = interface.OPTS
     conf = util.setup_conf()
     self.assertTrue(all([opt.name in conf for opt in expected_opts]))