def get_ntp_stats(self):
<EOL>ntp_stats = []<EOL>REGEX = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>)<EOL>ntp_assoc_output = self.device.cli('<STR_LIT>')<EOL>ntp_assoc_output_lines = ntp_assoc_output.splitlines()<EOL>for ntp_assoc_output_line in ntp_assoc_output_lines[<NUM_LIT:3>:]:  <EOL><INDENT>line_search = re.search(REGEX, ntp_assoc_output_line, re.I)<EOL>if not line_search:<EOL><INDENT>continue  <EOL><DEDENT>line_groups = line_search.groups()<EOL>try:<EOL><INDENT>ntp_stats.append({<EOL>'<STR_LIT>': napalm_base.helpers.ip(line_groups[<NUM_LIT:1>]),<EOL>'<STR_LIT>': (line_groups[<NUM_LIT:0>] == '<STR_LIT:*>'),<EOL>'<STR_LIT>': py23_compat.text_type(line_groups[<NUM_LIT:2>]),<EOL>'<STR_LIT>': int(line_groups[<NUM_LIT:3>]),<EOL>'<STR_LIT:type>': py23_compat.text_type(line_groups[<NUM_LIT:4>]),<EOL>'<STR_LIT>': py23_compat.text_type(line_groups[<NUM_LIT:5>]),<EOL>'<STR_LIT>': int(line_groups[<NUM_LIT:6>]),<EOL>'<STR_LIT>': int(line_groups[<NUM_LIT:7>]),<EOL>'<STR_LIT>': float(line_groups[<NUM_LIT:8>]),<EOL>'<STR_LIT>': float(line_groups[<NUM_LIT:9>]),<EOL>'<STR_LIT>': float(line_groups[<NUM_LIT:10>])<EOL>})<EOL><DEDENT>except Exception:<EOL><INDENT>continue  <EOL><DEDENT><DEDENT>return ntp_stats<EOL>
Return NTP stats (associations).