Hi Venky, There are several ways you might go about this but I would council that cloning code is a last resort – it would be a mainanence headache if you replace the current one or have i’s own set of challenges to use your replace node. if you could give me some more detail on how you want to change the next-hop selection I will gladly give you some specific advice.
/neale From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Venky Venkatesh via lists.fd.io <vvenkatesh=paloaltonetworks....@lists.fd.io> Date: Wednesday, 1 September 2021 at 16:48 To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> Subject: [vpp-dev] Question regarding ip4/ip6 nexthop load balance flexibility #vnet Hi, I am new to fd.io<http://fd.io/>. So pls pardon my ignorance. I wanted to experiment with different next hop selection algorithms once the destination IP is looked up. I looked at the ip4 code. My changes would be localized to how the nexthop is determined after the hash is calculated (currently it is going thru load_balance code). To my understanding it appears that ip4_lookup graph node has both the lookup and the next hop selection all bundled in one. If that is correct, then is the only way to try out alternate next hop selection algorithms be to create a graph node which is practically a clone of the ip4_lookup and then change the required portions in the cloned node code? If so, is this workflow in line with the way flexibility was intended? Any ideas welcome. Thanks -Venky #vnet
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20070): https://lists.fd.io/g/vpp-dev/message/20070 Mute This Topic: https://lists.fd.io/mt/85304201/21656 Mute #vnet:https://lists.fd.io/g/vpp-dev/mutehashtag/vnet Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-