RecipeParser is no longer used for recipe parsing, thus we can delete it's import
and methods related with it
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/NetTestController.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/lnst/Controller/NetTestController.py b/lnst/Controller/NetTestController.py
index 8fdd43e..39e2950 100644
--- a/lnst/Controller/NetTestController.py
+++ b/lnst/Controller/NetTestController.py
@@ -24,7 +24,7 @@ from lnst.Common.NetUtils import MacPool
from lnst.Common.Utils import md5sum, dir_md5sum
from lnst.Common.Utils import check_process_running, bool_it, get_module_tools
from lnst.Common.NetTestCommand import str_command, CommandException
-from lnst.Controller.RecipeParser import RecipeParser, RecipeError
+from lnst.Controller.RecipeParser import RecipeError
from lnst.Controller.SlavePool import SlavePool
from lnst.Controller.Machine import MachineError, VirtualInterface
from lnst.Controller.Machine import StaticInterface
@@ -62,7 +62,6 @@ class NetTestController:
self._msg_dispatcher = MessageDispatcher(log_ctl)
self._packet_capture = packet_capture
self._reduce_sync = reduce_sync
- self._parser = RecipeParser(recipe_path)
self.remove_saved_machine_config()
@@ -73,10 +72,6 @@ class NetTestController:
mac_pool_range = lnst_config.get_option('environment',
'mac_pool_range')
self._mac_pool = MacPool(mac_pool_range[0], mac_pool_range[1])
- self._parser.set_machines(self._machines)
- self._parser.set_aliases(defined_aliases, overriden_aliases)
- self._recipe = self._parser.parse()
-
conf_pools = lnst_config.get_pools()
pools = {}
if len(restrict_pools) > 0:
--
2.4.11