Skip to content
Snippets Groups Projects
Commit ffe63af3 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - GNMI OpenConfig:

- Updated unitary tests
parent 3a2f62eb
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!172Resolve "(CTTC) Extend gNMI-OpenConfig SBI driver"
......@@ -25,10 +25,12 @@ from .result_config_adapters import adapt_endpoint, adapt_interface, adapt_netwo
LOGGER = logging.getLogger(__name__)
def check_expected_config(
driver : GnmiOpenConfigDriver, resources_to_get : Dict[str], expected_config : List[Dict],
driver : GnmiOpenConfigDriver, resources_to_get : List[str], expected_config : List[Dict],
func_adapt_returned_config : Callable[[Tuple[str, Dict]], Tuple[str, Dict]] = lambda x: x,
max_retries : int = 1, retry_delay : float = 0.5
) -> List[Dict]:
LOGGER.info('expected_config = {:s}'.format(str(expected_config)))
num_retry = 0
return_data = None
while num_retry < max_retries:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment