Project

General

Profile

Feature #2665

NetDeviceFace: show NetDevice Address as LocalUri

Added by Junxiao Shi almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
helpers
Target version:
Start date:
03/22/2015
Due date:
% Done:

100%

Estimated time:

Description

Currently, all NetDeviceFaces have netDeviceFace:// as RemoteUri and LocalUri.
This isn't useful for distinguishing between those faces.

LocalUri should be changed to contain netDevice.GetAddress(), such as:

"netdev:///" + boost::lexical_cast<std::string>(netdev->GetAddress())

Caution: Ensure the FaceUri is valid.
The example above puts the address to Path part of FaceUri, because the rules are looser than Host part.

Also available in: Atom PDF