ipspace / netlab

Making virtual networking labs suck less
https://netlab.tools
Other
403 stars 56 forks source link

Add 'bgp.link_bandwidth' knob to the bgp.session plugin #1191

Open jbemmel opened 1 month ago

jbemmel commented 1 month ago

Enables weighted ECMP based on link capacity

Inspired by https://bgplabs.net/lb/2-dmz-bw/

ipspace commented 1 month ago

Love the idea. However, I think this functionality should be part of the bgp.policy plugin:

Also, in theory you could set Link Bandwidth on incoming or outgoing updates, so we might need bgp.bandwidth.in and bgp.bandwidth.out (with a number instead of a dictionary meaning in).

I could write the framework Python code in bgp.policy plugin, and then you'd just add the SR OS template.

jbemmel commented 1 month ago

Sure, we can put it there. There are indeed additional knobs to send or accept the extended community to/from ebgp peers.

Let me know when you're ready for the template and I'll add it