Skip to content

Commit

Permalink
specified base image for terminal, ws, ns
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-grieco committed Nov 23, 2023
1 parent 6c43dbf commit 6cae6f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lab-generator/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function makeLabConfFile(netkit, lab) {
lab.file["lab.conf"] += machine.name + "[image]=kathara/quagga";
}
}
if(machine.type == "terminal" || machine.type == "ws" || machine.type == "ns"){
lab.file["lab.conf"] += machine.name + "[image]=kathara/base";
}
lab.file["lab.conf"] += "\n";
}
}
Expand Down Expand Up @@ -104,6 +107,8 @@ function makeRouterFrr(machine, lab) {
}
//inizializziamo il file frr.conf
lab.file[machine.name+"/etc/frr/frr.conf"]="";
//creiamo il file di vtysh
lab.file[machine.name+"/etc/frr/vtysh.conf"]="service integrated-vtysh-config";
if (machine.routing.rip.en) {
makeRouterRipFrr(machine, lab);
}
Expand Down

0 comments on commit 6cae6f5

Please sign in to comment.