docs: def vnic_attached_to_network(nicspec, network, logger):
          """
          Attach vNIC to Network.
          :param nicspec: <vim.vm.device.VirtualDeviceSpec>
          :param network: <vim network obj>
          :return: updated 'nicspec'
          """
  
          if nicspec:
              if network_is_portgroup(network):
                  return VNicService.vnic_attach_to_network_distributed(nicspec, network,
                                                                        logger=logger)
              elif network_is_standard(network):
                  return VNicService.vnic_attach_to_network_standard(nicspec, network,
                                                                     logger=logger)
          return None