diff options
| author | Ratan Gupta <ratagupt@in.ibm.com> | 2018-05-04 16:53:47 +0530 |
|---|---|---|
| committer | Ratan Gupta <ratagupt@in.ibm.com> | 2018-05-04 16:53:47 +0530 |
| commit | 3e60e07a92230d259d702b6128aa22814b3879b1 (patch) | |
| tree | da01260efa471fb362ee526322d1dd146b8aa486 | |
| parent | 6af6144a745aff4ed90d923cedb064ba28ed3fb2 (diff) | |
| download | phosphor-networkd-3e60e07a92230d259d702b6128aa22814b3879b1.tar.gz phosphor-networkd-3e60e07a92230d259d702b6128aa22814b3879b1.zip | |
Write Separate Route section for different Routes
Each route should be its own Route Section.
Change-Id: I697d9d7e1cf2b1656cea7c31f9c342067a486fd2
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
| -rw-r--r-- | ethernet_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp index e388fa8..51eaf85 100644 --- a/ethernet_interface.cpp +++ b/ethernet_interface.cpp @@ -603,7 +603,6 @@ void EthernetInterface::writeConfigurationFile() } // write the route section - stream << "[" << "Route" << "]\n"; for (const auto& addr : addrs) { if (addr.second->origin() == AddressOrigin::Static) @@ -621,6 +620,7 @@ void EthernetInterface::writeConfigurationFile() destination != "0.0.0.0" && destination != "") { + stream << "[" << "Route" << "]\n"; stream << "Gateway=" << addr.second->gateway() << "\n"; stream << "Destination=" << destination << "\n"; } |

