Skip to content

Commit

Permalink
Merge pull request #36 from KatharaFramework/develop
Browse files Browse the repository at this point in the history
Netkit Lab Generator v1.5.0
  • Loading branch information
lorenzo93 authored Nov 12, 2024
2 parents 03105f8 + a157e01 commit d150331
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 53 deletions.
156 changes: 106 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nlg",
"productName": "Netkit Lab Generator",
"version": "1.4.0",
"version": "1.5.0",
"description": "Desktop UI for Kathara",
"repository": "https://github.com/KatharaFramework/Netkit-Lab-Generator.git",
"main": "electronClient.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lab-generator/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function makeRouterFrr(machine, lab) {
//nb: i costi vanno qui alla fine
if (machine.routing.ospf.en) {
for (let interface of machine.routing.ospf.if) {
if (interface.cost != "" && interface.cost) {
if (interface && interface !== undefined && interface.cost != "" && interface.cost) {
lab.file[machine.name + "/etc/frr/frr.conf"] += "interface eth" + interface.interface + "\n";
lab.file[machine.name + "/etc/frr/frr.conf"] += "ospf cost " + interface.cost + "\n";
}
Expand Down
2 changes: 1 addition & 1 deletion src/style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body {
padding: 0;
margin: 0;
top: 0;
position: fixed;
position: relative;
width: 100%;
padding-top: 45px;
}
Expand Down

0 comments on commit d150331

Please sign in to comment.