def process_show_version(net_device):
 show_ver = net_device.show_version
 (net_device.vendor, net_device.model) = obtain_vendor_model(show_ver)
 net_device.os_version = obtain_os_version(show_ver)
 net_device.uptime = obtain_uptime(show_ver)
 net_device.hostname = obtain_hostname(show_ver)
 net_device.serial_number = obtain_serial_number(show_ver)
 net_device.device_type = obtain_device_type(net_device.model)

def process_show_version ( net_device ) : show_ver = net_device . show_version ( net_device . vendor , net_device . model ) = obtain_vendor_model ( show_ver ) net_device . os_version = obtain_os_version ( show_ver ) net_device . uptime = obtain_uptime ( show_ver ) net_device . hostname = obtain_hostname ( show_ver ) net_device . serial_number = obtain_serial_number ( show_ver ) net_device . device_type = obtain_device_type ( net_device . model )
process the show_version output for net_device assign the following attributes to the net_device object hostname device_type # router .