Project

General

Profile

Actions

Bug #5002

open

topologyReader.ApplyOspfMetric() doesn't work unless ndn::StackHelper is installed

Added by Anonymous about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/18/2019
Due date:
% Done:

0%

Estimated time:

Description

The following code does not apply the link metrics as intended:

  AnnotatedTopologyReader topologyReader{};
  topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-" + topoName + ".txt");
  topologyReader.Read();
  topologyReader.ApplyOspfMetric();

  ndn::StackHelper stackHelper{};
  stackHelper.InstallAll();

Rather one has two write the code like this:

  AnnotatedTopologyReader topologyReader{};
  topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-" + topoName + ".txt");
  topologyReader.Read();

  ndn::StackHelper stackHelper{};
  stackHelper.InstallAll();

  // IMPORTANT: Has to be run after StackHelper!
  topologyReader.ApplyOspfMetric();

No data to display

Actions

Also available in: Atom PDF