Browse Source

[1237] Reading interfaces.txt file is now optional.

Tomek Mrugalski 13 years ago
parent
commit
dc2ae81fef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dhcp/iface_mgr.cc

+ 2 - 2
src/lib/dhcp/iface_mgr.cc

@@ -169,8 +169,8 @@ IfaceMgr::stubDetectIfaces() {
         ifstream interfaces("interfaces.txt");
 
         if (!interfaces.good()) {
-            cout << "Failed to read interfaces.txt file." << endl;
-            isc_throw(Unexpected, "Failed to read interfaces.txt");
+            cout << "interfaces.txt file is not available. Stub interface detection skipped." << endl;
+            return;
         }
         interfaces >> ifaceName;
         interfaces >> linkLocal;