Skip to content
Snippets Groups Projects
Commit e0137438 authored by Lars Seipel's avatar Lars Seipel
Browse files

runner/libvirt: write DOT graph to /etc/ptm.d on CL

The ptmd on Cumulus Linux can cross-check it against LLDP
info and also accepts some configuration (BFD, for example)
from the DOT file.
parent 9e884454
No related branches found
No related tags found
No related merge requests found
......@@ -658,6 +658,9 @@ func (r *Runner) customizeDomains(ctx context.Context, t *topology.T) (err error
user := "root"
if isCumulusFunction(d.topoDev.Function()) {
user = "cumulus"
fmt.Fprintf(&buf, "write /etc/ptm.d/topology.dot:%s\n",
bytes.Replace(t.DOT(), []byte("\n"),
[]byte("\\\n"), -1))
}
for _, k := range r.authorizedKeys {
fmt.Fprintf(&buf, "ssh-inject %s:string:%s\n", user, k)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment