deployments-k8s
deployments-k8s copied to clipboard
[Question] Do we need to add Caddyfile based NSE?
Motivation
We could create one cmd-${TODO: consider name}-nse that would parse config based on caddyfile format. The main point is: Have a possible to build NSEs based on SDKs without building new app
. That can be used for testing goals (we do not more add new cmd-repo for each new typically NSE) and for users that do not want to code NSE and want just a play with NSM.
Example
To create an copy of current cmd-icmp-responder we could use this config:
my-endpoint {
point2pointipam
recvfd
mechanisms {
'kernel' {
kernel
}
}
dnscontext
sendfd
}
To create a copy of the current cmd-icmp-responder-vpp we could use this config:
my-vpp-endpoint {
point2pointipam
mechanisms {
'memif' {
sendfd
up
connectioncontext
tag
memif
}
}
}
Let me know if this direction can be interested, then I can provide more technical details on how to achieve this :)