One could do that, but what problem are you trying to solve? The data structures involved are not super-complicated, but what you’ve described is neither a beginner project nor a worthwhile project IMO.
If you want to spoof MAC addresses in the L2 path, add an L2 feature node which does that. Generally speaking, two nodes A and B have a contract in terms of buffer metadata setup. Arbitrary graph rewiring would result in either gross or subtle malfunction. In terms of how to build a plugin: look at .../src/examples/sample-plugin. I maintain (sporadically) a set of emacs skeletons in .../extras/emacs. If you M-x eval-buffer all-skel.el, a subsequent M-x make-plugin will create a boilerplate plugin for you. Thanks… Dave From: [email protected] [mailto:[email protected]] On Behalf Of Ngo Doan Lap Sent: Thursday, September 7, 2017 10:18 PM To: [email protected] Subject: [vpp-dev] Rearrangement of graph nodes Hi, From this page https://wiki.fd.io/view/VPP/What_is_VPP%3F There is an option to create a plugin to rearrange graph nodes. I want to write a plugin that builds graph nodes from a file, for example graph.txt: dpdk-input-->ethernet-input->change-mac I would like to know from your opinion that is it possible with VPP? And if yes, can you tell me how to write a plugin to rearrange graph nodes? (I'm unable to find the example/doc to build a plugin to rearrange graph nodes) -- Thanks and Best Regards, Ngo Doan Lap
_______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
