Determine default IPv4 route device only when needed
Sometimes instances don't have an IPv4 default route, so only check for
it when we actually need it. In a followup patch we could extend the
code to check for an IPv6 default route instead or in addition.
Related-Bug: 1902002
Change-Id: Ie6cd241721f6b1f8e030960921a696939b2dab10
(cherry picked from commit 47f76acbbac350ea18df6a9463876d38c3a13539)
Reviewed: https:/ /review. opendev. org/761739 /git.openstack. org/cgit/ openstack/ devstack/ commit/ ?id=bbcd56fbef8 8a3f6c774904fa6 d9b9a8acb477c8
Committed: https:/
Submitter: Zuul
Branch: stable/victoria
commit bbcd56fbef88a3f 6c774904fa6d9b9 a8acb477c8
Author: Jens Harbott <email address hidden>
Date: Thu Oct 29 10:42:38 2020 +0000
Determine default IPv4 route device only when needed
Sometimes instances don't have an IPv4 default route, so only check for
it when we actually need it. In a followup patch we could extend the
code to check for an IPv6 default route instead or in addition.
Related-Bug: 1902002 f8e030960921a69 6939b2dab10 a18df6a9463876d 38c3a13539)
Change-Id: Ie6cd241721f6b1
(cherry picked from commit 47f76acbbac350e