commit | f9fc034be4702949cf739a7e0955a25a2f9ed21d | [log] [tgz] |
---|---|---|
author | Sean Condon <sean@opennetworking.org> | Sun Mar 22 12:55:57 2020 +0000 |
committer | Sean Condon <sean@opennetworking.org> | Sun Mar 22 12:57:01 2020 +0000 |
tree | 86acd7684f85e5b46f192f9d61c0927591bc8aad | |
parent | 72ab6e5592e71a0466d7bac06b1eeeb7e0513cd4 [diff] [blame] |
Display host names given in netcfg Change-Id: I184633ca73652e81471503837145d129ab51b9ee
diff --git a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts index 806f9b2..41f2965 100644 --- a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts +++ b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts
@@ -62,9 +62,10 @@ return this.host.ips.join(','); } else if (this.labelToggle === HostLabelToggle.Enum.MAC) { return this.host.id; + } else if (this.labelToggle === HostLabelToggle.Enum.NAME) { + return this.host.props.name; } else { - return this.host.id; // Todo - replace with a friendly name + return this.host.id; } - } }