def execute(self):
    objects = []
    v = self.scripts.get_version()
    part_no = v['platform']
    vendor = v['vendor']
    p = {'type': 'CHASSIS', 'number': 1, 'vendor': vendor, 'description': part_no, 'part_no': [part_no], 'builtin': False}
    if v.get('attributes', {}).get('Serial Number', ''):
        p['serial'] = v['attributes']['Serial Number']
    objects += [p]
    objects += self.get_transceivers()
    return objects
def execute(self):
    objects = []
    v = self.scripts.get_version()
    part_no = v['platform']
    vendor = v['vendor']
    p = {'type': 'CHASSIS', 'number': 1, 'vendor': vendor, 'description': part_no, 'part_no': [part_no], 'builtin': False}
    if v.get('attributes', {}).get('Serial Number', ):
        p['serial'] = v['attributes']['Serial Number']
    objects += [p]
    objects += self.get_transceivers()
    return objects