From bc403dbcda1edb8ebeee275fa3344ab88bc54ab1 Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Mon, 18 Feb 2019 19:35:40 +0530 Subject: Added new module - frr_facts (#51804) * Add new module frr_facts Signed-off-by: NilashishC * Fix return value Signed-off-by: NilashishC * Fix review comments Signed-off-by: NilashishC * Fix review comments Signed-off-by: NilashishC * Handle empty row for mpls ldp neighbors Signed-off-by: NilashishC * Fix review comments Signed-off-by: NilashishC * Fix CI Signed-off-by: NilashishC * Remove timestamp from cliconf pluging * Updated examples Signed-off-by: NilashishC * Fix sanity tests Signed-off-by: NilashishC --- lib/ansible/plugins/cliconf/frr.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/ansible/plugins/cliconf') diff --git a/lib/ansible/plugins/cliconf/frr.py b/lib/ansible/plugins/cliconf/frr.py index be80b04aec..37ba5ba4e0 100644 --- a/lib/ansible/plugins/cliconf/frr.py +++ b/lib/ansible/plugins/cliconf/frr.py @@ -187,12 +187,11 @@ class Cliconf(CliconfBase): return self.send_command(command=command, prompt=prompt, answer=answer, sendonly=sendonly, check_all=check_all) - def run_commands(self, commands=None, check_rc=True, return_timestamps=False): + def run_commands(self, commands=None, check_rc=True): if commands is None: raise ValueError("'commands' value is required") responses = list() - timestamps = list() for cmd in to_list(commands): if not isinstance(cmd, Mapping): cmd = {'command': cmd} @@ -203,16 +202,11 @@ class Cliconf(CliconfBase): try: out = self.send_command(**cmd) - timestamp = get_timestamp() except AnsibleConnectionFailure as e: if check_rc: raise out = getattr(e, 'err', to_text(e)) responses.append(out) - timestamps.append(timestamp) - if return_timestamps: - return responses, timestamps - else: - return responses + return responses -- cgit v1.2.1