예제 #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)
예제 #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)
예제 #3
0
 def setup_config(self, args=None):
     self.conf = netns_cleanup.setup_conf()
     super(TestNETNSCLIConfig, self).setup_config(args=args)
예제 #4
0
 def setup_config(self, args=None):
     self.conf = netns_cleanup.setup_conf()
     super(TestNETNSCLIConfig, self).setup_config(args=args)
예제 #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]))
예제 #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]))