faucetsdn / ryu

Ryu component-based software defined networking framework
https://ryu-sdn.org
Apache License 2.0
1.5k stars 1.16k forks source link

Fix iBGP scenario with MED not set - avoid assertion #156

Closed jbemmel closed 2 years ago

jbemmel commented 2 years ago

In an iBGP scenario, the MED may not be set and 'None' gets passed as a parameter.

anarkiwi commented 2 years ago

Thanks for your contribution! Would you be able to address:

pycodestyle run-test-pre: PYTHONHASHSEED='3463727370' pycodestyle run-test: commands[0] | pycodestyle ./ryu/services/protocols/bgp/utils/bgp.py:93:16: E261 at least two spaces before inline comment ./ryu/services/protocols/bgp/utils/bgp.py:100:12: E261 at least two spaces before inline comment ./ryu/services/protocols/bgp/utils/bgp.py:101:8: E111 indentation is not a multiple of four ./ryu/services/protocols/bgp/utils/bgp.py:106:53: E261 at least two spaces before inline comment ERROR: InvocationError for command /home/runner/work/ryu/ryu/.tox/pycodestyle/bin/pycodestyle (exited with code 1)

please?