zeek/auxil/zeekctl/testing/Cfg/plugins/zeekctlconfigtest.py
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

21 lines
474 B
Python

# Zeekctl test plugin that defines a string to write to zeekctl-config.zeek
import ZeekControl.plugin
class ZeekctlConfigTest(ZeekControl.plugin.Plugin):
def __init__(self):
super().__init__(apiversion=1)
def name(self):
return "zeekctlconfigtest"
def pluginVersion(self):
return 1
def init(self):
return True
def zeekctl_config(self):
return 'redef TestVar = "this is a test";\nredef Test="another test";'