commit | f9ff66abc2141156c908c433bc24018e8e3f13b7 | [log] [tgz] |
---|---|---|
author | Sean Condon <sean@opennetworking.org> | Mon Mar 23 08:40:55 2020 +0000 |
committer | Sean Condon <sean@opennetworking.org> | Mon Mar 23 09:22:22 2020 +0000 |
tree | 6bda2b4c8d00cad891dcf3c5bdadb6fe8e899e3f | |
parent | 5daa7c463b783514430cab48904b71106441faf2 [diff] [blame] |
Display host names given in netcfg Change-Id: I883c9aa06c09221bdc198ea1d47b4cbf8b31fde5
diff --git a/web/gui2-topo-lib/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts b/web/gui2-topo-lib/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts index e6febb6..dc132d7 100644 --- a/web/gui2-topo-lib/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts +++ b/web/gui2-topo-lib/lib/layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component.ts
@@ -69,8 +69,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; } }