Re: [vpp-dev] Rearrangement of graph nodes

2017-09-08 Thread Ngo Doan Lap
Hi Dave,
I'm trying to create a flexible way to build new network app without
touching the source code.
Initially, we need to develop basic/atom nodes such as SetMac, SetVLAN,
SetIP, LookUpIP, LookUpMac ...
After that, we can create a new app by using the above atom nodes to define
a graph in a file and VPP parser this file to build the graph.
Does this break any VPP philosophies?


On Fri, Sep 8, 2017 at 7:09 PM, Dave Barach (dbarach) <dbar...@cisco.com>
wrote:

> 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:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On
> Behalf Of *Ngo Doan Lap
> *Sent:* Thursday, September 7, 2017 10:18 PM
> *To:* vpp-dev@lists.fd.io
> *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
>
>
>



-- 
Thanks and Best Regards,
Ngo Doan Lap
Mobile: 0977.833.757
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Rearrangement of graph nodes

2017-09-08 Thread Dave Barach (dbarach)
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: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Ngo Doan Lap
Sent: Thursday, September 7, 2017 10:18 PM
To: vpp-dev@lists.fd.io
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
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] Rearrangement of graph nodes

2017-09-07 Thread Ngo Doan Lap
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
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev