Create the VLAN Interface Object

Change-Id: I118fc4bbcad2a478a8aad976e0619537780c1227
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/network_manager.cpp b/network_manager.cpp
index cdbaf45..24f3568 100644
--- a/network_manager.cpp
+++ b/network_manager.cpp
@@ -3,6 +3,7 @@
 #include "util.hpp"
 #include "network_manager.hpp"
 #include "network_config.hpp"
+#include "ipaddress.hpp"
 #include "xyz/openbmc_project/Common/error.hpp"
 
 #include <phosphor-logging/log.hpp>
@@ -98,6 +99,9 @@
 
 void Manager::vLAN(IntfName interfaceName, uint32_t id)
 {
+   auto& intf = interfaces[interfaceName];
+   intf->createVLAN(id);
+   writeToConfigurationFile();
 }
 
 void Manager::reset()
@@ -207,6 +211,7 @@
 
             }
         }
+
         stream << "Gateway=" << systemConf->defaultGateway() << "\n";
         // write the route section
         stream << "[" << "Route" << "]\n";
@@ -225,7 +230,6 @@
                     destination != "0.0.0.0" &&
                     destination != "")
                 {
-
                     stream << "Gateway=" << addr.second->gateway() << "\n";
                     stream << "Destination=" << destination << "\n";
                 }