Task #1234
Updated by Junxiao Shi almost 11 years ago
Develop a procedure to change forwarding strategy of a namespace at runtime. Arguments: an existing FIB entry, the new strategy Steps: 1. if the new strategy equals the old effective strategy on the FIB entry, abort these steps 2. traverse the NameTree entries under the namespace of the FIB entry. For each NameTree entry: * if the NameTree entry is a subtree covered by another explicitly set strategy (in `FibManager::m_namespaceToStrategyMap`), skip this subtree * visit FIB entry, PIT entries and their In/OutRecords, Measurements entry attached on the NameTree, delete the StrategyInfo on those entities 3. add the new strategy to `FibManager::m_namespaceToStrategyMap` and set it on the FIB entry Note: Every strategy MUST be prepared to see an entity without its StrategyInfo.