Skip to content

Commit 7669636

Browse files
author
Your Name
committed
commit with tag nightly-24.01.30
1 parent a775bba commit 7669636

15 files changed

+541
-24980
lines changed

dist/clab-topoviewer.tmpl

+7-4
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,22 @@
3434
],
3535
"links": [{{range $i, $l := .Clab.Links}}{{if $i}},{{end}}{{ $endpointA := index $l.Endpoints 0 }}{{ $endpointB := index $l.Endpoints 1 }}{{ $endpointAList := split (printf "%s"
3636
$endpointA) ":" }}{{ $endpointBList := split (printf "%s" $endpointB) ":" }}
37+
{{- $eps := $l.GetEndpoints }}
38+
{{- $ep := index $eps 0 }}
3739
{
3840
"a": {
3941
"node": "{{ index $endpointAList 0 }}",
4042
"nodeLongName": "{{ $type }}-{{ $labName}}-{{ index $endpointAList 0 }}",
41-
"interface": "{{ index $endpointAList 1 }}",
42-
"mac": "",
43+
"interface": "{{ $ep.GetIfaceName }}",
44+
"mac": "{{ $ep.GetMac }}",
4345
"peer": "z"
4446
},
47+
{{- $ep := index $eps 1 }}
4548
"z": {
4649
"node": "{{ index $endpointBList 0 }}",
4750
"nodeLongName": "{{ $type }}-{{ $labName}}-{{ index $endpointBList 0 }}",
48-
"interface": "{{ index $endpointBList 1 }}",
49-
"mac": "",
51+
"interface": "{{ $ep.GetIfaceName }}",
52+
"mac": "{{ $ep.GetMac }}",
5053
"peer": "a"
5154
}
5255
}{{end}}

dist/dist.zip

1.81 KB
Binary file not shown.

0 commit comments

Comments
 (0)