From 34846df882bf25d0e94e46fa1e402ff98151f85d Mon Sep 17 00:00:00 2001 From: "M. Hamzah Khan" Date: Tue, 14 Nov 2023 19:32:39 +0000 Subject: T5741: Update dhclient lease path to /run/dhclient --- src/lbdata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lbdata.cc b/src/lbdata.cc index ed36e37..9a86f29 100644 --- a/src/lbdata.cc +++ b/src/lbdata.cc @@ -332,7 +332,7 @@ LBData::update_dhcp_nexthop() LBData::InterfaceHealthIter h_iter = _iface_health_coll.begin(); while (h_iter != _iface_health_coll.end()) { if (h_iter->second._nexthop == "dhcp") { - string file("/var/lib/dhcp/dhclient_"+h_iter->first+".lease"); + string file("/run/dhclient/dhclient_"+h_iter->first+".lease"); FILE *fp = fopen(file.c_str(),"r"); if (fp) { char str[1025]; -- cgit v1.2.3