Skip to content

Commit

Permalink
Avoid reporting "interface not found" on macvtap ip resources
Browse files Browse the repository at this point in the history
It is normal not to find the interface when down, as the start codepath creates it.
  • Loading branch information
cvaroqui committed Jan 29, 2021
1 parent e99ecb5 commit d12dbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensvc/drivers/resource/ip/__init__.py
Expand Up @@ -353,7 +353,7 @@ def _status(self, verbose=False):
ifconfig = self.get_ifconfig()
intf = ifconfig.interface(self.ipdev)
mode = getattr(self, "mode") if hasattr(self, "mode") else None
if intf is None and "dedicated" not in self.tags and mode != "dedicated":
if intf is None and self.base_ipdev is None and "dedicated" not in self.tags and mode != "dedicated":
self.status_log("interface %s not found" % self.ipdev)
return core.status.DOWN
try:
Expand Down

0 comments on commit d12dbc9

Please sign in to comment.