def execute(self):
    ver = self.cli('show version', cached=True)
    match = self.re_search(self.rx_platform, ver)
    vmatch = self.re_search(self.rx_ver, ver)
    bmatch = self.re_search(self.rx_bver, ver)
    hmatch = self.re_search(self.rx_hver, ver)
    smatch = self.re_search(self.rx_serial, ver)
    return {'vendor': 'DCN', 'platform': match.group('platform'), 'version': vmatch.group('version'), 'attributes': {'Bootrom version': bmatch.group('bversion'), 'HW version': hmatch.group('hversion'), 'Serial Number': smatch.group('serial')}}
def execute(self):
    ver = self.cli('show version', cached=True)
    match = self.re_search(self.rx_platform, ver)
    vmatch = self.re_search(self.rx_ver, ver)
    bmatch = self.re_search(self.rx_bver, ver)
    hmatch = self.re_search(self.rx_hver, ver)
    smatch = self.re_search(self.rx_serial, ver)
    return {'vendor': 'DCN', 'platform': match.group('platform'), 'version': vmatch.group('version'), 'attributes': {'Bootrom version': bmatch.group('bversion'), 'HW version': hmatch.group('hversion'), 'Serial Number': smatch.group('serial')}}