commit 7a48143670fe71e182ab7f98f04437b651ea868f
Author: Andre Fernando Zanella Kantek <email address hidden>
Date: Fri Jun 3 16:58:24 2022 -0300
Debian: only update routes after interfaces are configured
In Debian it was detected a dependency to create interfaces before
the creation of routes. This change sets this order for the Debian
installations, and keeps the current order for CentOS.
Detected that is all static routes are removed the file
/var/run/network-scripts/routes is not generated, we need to
remove all route in /etc/network/routes. This was not happening
Also adding log messages if the route creation/delete fails.
Test Plan
PASS add routes with system host-route-add and unlock on Debian
PASS del routes with system host-route-delete and unlock on Debian
Closes-Bug: 1977558
Signed-off-by: Andre Fernando Zanella Kantek <email address hidden>
Change-Id: I72714349957c6a2241485907ea79f8b3e6fe6537
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/844641 /opendev. org/starlingx/ stx-puppet/ commit/ 7a48143670fe71e 182ab7f98f04437 b651ea868f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 7a48143670fe71e 182ab7f98f04437 b651ea868f
Author: Andre Fernando Zanella Kantek <email address hidden>
Date: Fri Jun 3 16:58:24 2022 -0300
Debian: only update routes after interfaces are configured
In Debian it was detected a dependency to create interfaces before
the creation of routes. This change sets this order for the Debian
installations, and keeps the current order for CentOS.
Detected that is all static routes are removed the file run/network- scripts/ routes is not generated, we need to routes. This was not happening
/var/
remove all route in /etc/network/
Also adding log messages if the route creation/delete fails.
Test Plan
PASS add routes with system host-route-add and unlock on Debian
PASS del routes with system host-route-delete and unlock on Debian
Closes-Bug: 1977558
Signed-off-by: Andre Fernando Zanella Kantek <email address hidden> 2241485907ea79f 8b3e6fe6537
Change-Id: I72714349957c6a