deployments-k8s icon indicating copy to clipboard operation
deployments-k8s copied to clipboard

[Question] Do we need to add Caddyfile based NSE?

Open denis-tingaikin opened this issue 3 years ago • 0 comments

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 :)

denis-tingaikin avatar May 01 '21 19:05 denis-tingaikin