diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-08 16:35:22 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-14 20:58:04 +0530 |
commit | 2003743e1be31104387a8589e959d6801eb99316 (patch) | |
tree | 45d28d1357879bcee02b61d23348c7954549ef27 | |
parent | 09f6157b38fb498c0a9bc06fef8d1d82205e0de7 (diff) | |
download | phosphor-networkd-2003743e1be31104387a8589e959d6801eb99316.tar.gz phosphor-networkd-2003743e1be31104387a8589e959d6801eb99316.zip |
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 <ratagupt@in.ibm.com>
-rw-r--r-- | ipaddress.cpp | 4 |
1 files 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<level::ERR>("DHCP enabled on the interface"), entry("INTERFACE=%s", parent.interfaceName().c_str()); - elog<InternalFailure>(); + return; } if (isLinkLocalIP(address())) @@ -50,7 +50,7 @@ void IPAddress::delete_() log<level::ERR>("Can not delete the LinkLocal address"), entry("INTERFACE=%s ADDRESS=%s", parent.interfaceName().c_str(), address().c_str()); - elog<InternalFailure>(); + return; } parent.deleteObject(address()); |