code: def _network_event_lifecycle_cb(conn, net, event, detail, opaque):
      '''
      Network lifecycle events handler
      '''
  
      _salt_send_event(opaque, conn, {
          'network': {
              'name': net.name(),
              'uuid': net.UUIDString()
          },
          'event': _get_libvirt_enum_string('VIR_NETWORK_EVENT_', event),
          'detail': 'unknown'  # currently unused
      }f _network_event_lifecycle_cb(conn, net, event, detail, opaque):
      '''
      Network lifecycle events handler
      '''
  
      _salt_send_event(opaque, conn, {
          'network': {
              'name': net.name(),
              'uuid': net.UUIDString()
          },
          'event': _get_libvirt_enum_string('VIR_NETWORK_EVENT_', event),
          'detail': 'unknown'  # currently unused
      })
docs: Network lifecycle events handler