This is needed to ensure we can redirect traffic from outside
to tenant networks through the cr-lrp, when the router has the
snat disabled.
Change-Id: Icdabc4f511ca5d08cd70b0249685751ee4492a9f
* Remove the bgp_as parameter from the _get_router_id() function as it
wasn't used
* Run the run_vtysh_config() command using temporary files to avoid
leaving the filesystem dirty when we run the OVN BGP Agent
* Fix logs to delay the interpolation
* Base test class to stop all mocks at the end of each test execution
Story: 2009165
Task: 43296
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: Idf37e2fd3305c5b4d8f5a4d2f57f781852938e13
We are not using OVSDB locks anywwhere, no set_lock() is being called so
we can get rid of the lock-related code for the OVSDB connection.
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: I783179936bfff2988af4fff1e36af1d94e925818
This patch also refactor a few things in the OvsdbSbOvnIdl class:
* is_provider_network() now returns a boolean, as expected by is_*
methods.
* The methods get_ports_on_datapath() and _get_ports_by_datapath() were
merged since they were the same thing.
* The methods get_evpn_info_from_port() and get_evpn_info() are now
merged since they were the same thing.
* The methods get_evpn_info_from_crlrp_port_name() and
get_evpn_info_from_lrp_port_name() were merged into
get_evpn_info_from_port_name()
* get_ip_from_port_peer() now can raise PortNotFound
This patch also adds unittests for the methods in the OvsdbSbOvnIdl class.
Story: 2009165
Task: 43262
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: I3d1e3b20727227f32d094deedc897d034ab6f7f6
Remove unnecessary return values as well as simplify other methods.
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: Ie8ce2ae6b95e569fe7248301700f71c72ace403b
This patch enables the basic pep8 and unittests jobs.
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: Ibce2e868bdd194d84cf9f75555a9fdf9af905bc9