From 2003743e1be31104387a8589e959d6801eb99316 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Wed, 8 Nov 2017 16:35:22 +0530 Subject: Don't throw exception in the case of deletion of link local address We have the issue opened for where link local address should not implement the delete interface at all, we need some refactoring there so for quick fix if delete operation performed on link local address we are just logging it in the journal and return. Resolves openbmc/openbmc#2561 Change-Id: I031e92206b98b729ea0bc0b135fb406563fc5dd0 Signed-off-by: Ratan Gupta --- ipaddress.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaddress.cpp b/ipaddress.cpp index 4daccd5..9244b24 100644 --- a/ipaddress.cpp +++ b/ipaddress.cpp @@ -42,7 +42,7 @@ void IPAddress::delete_() { log("DHCP enabled on the interface"), entry("INTERFACE=%s", parent.interfaceName().c_str()); - elog(); + return; } if (isLinkLocalIP(address())) @@ -50,7 +50,7 @@ void IPAddress::delete_() log("Can not delete the LinkLocal address"), entry("INTERFACE=%s ADDRESS=%s", parent.interfaceName().c_str(), address().c_str()); - elog(); + return; } parent.deleteObject(address()); -- cgit v1.2.1