docs: def get_device_spec(vnic, set_connected):
          """
          this function creates the device change spec,
          :param vnic: vnic
          :param set_connected: bool, set as connected or not, default: True
          :rtype: device_spec
          """
          nic_spec = VNicService.create_vnic_spec(vnic)
          VNicService.set_vnic_connectivity_status(nic_spec, to_connect=set_connected)
          return nic_spec