From 2490534f1990b016ad1baf127687310f19c128f4 Mon Sep 17 00:00:00 2001 From: ajbalogh Date: Sat, 14 Nov 2020 21:44:03 -0800 Subject: [PATCH] connect prior to validation --- ixnetwork_open_traffic_generator/ixnetworkapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixnetwork_open_traffic_generator/ixnetworkapi.py b/ixnetwork_open_traffic_generator/ixnetworkapi.py index 313e9d06b..7b2900b95 100644 --- a/ixnetwork_open_traffic_generator/ixnetworkapi.py +++ b/ixnetwork_open_traffic_generator/ixnetworkapi.py @@ -118,9 +118,9 @@ def _set_config_state(self, config_state): self._ixn_objects = {} self._capture_request = None self._errors = [] + self._connect() with Timer(self, 'Config validation'): self.validation.validate_config() - self._connect() if self._config is None: self._ixnetwork.NewConfig() else: