network_manager: Allow direct access to interfaces

Change-Id: I3dc2bb944b8d3a7873e26ce2958a2cb1d9be95af
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/network_manager.hpp b/src/network_manager.hpp
index 89d909a..edd7125 100644
--- a/src/network_manager.hpp
+++ b/src/network_manager.hpp
@@ -129,23 +129,13 @@
      */
     void doReloadConfigs();
 
-    /** @brief Returns the number of interfaces under this manager.
+    /** @brief Get the interfaces owned by the manager
      *
-     * @return the number of interfaces managed by this manager.
+     * @return Interfaces reference.
      */
-    inline size_t getInterfaceCount()
+    inline const auto& getInterfaces() const
     {
-        return interfaces.size();
-    }
-
-    /** @brief Does the requested interface exist under this manager?
-     *
-     * @param[in] intf - the interface name to check.
-     * @return true if found, false otherwise.
-     */
-    inline bool hasInterface(std::string_view intf)
-    {
-        return interfaces.find(intf) != interfaces.end();
+        return interfaces;
     }
 
     /** @brief Get the routing table owned by the manager