Skip to content

Commit

Permalink
fix generate_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
haberkornsam committed Oct 8, 2024
1 parent 69b35b9 commit 57c72a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,13 @@ def generate_body(devicemap):
if dev_intf["type"] == "MGMT":
continue
intf = {
"pciAddress": dev_intf["pciAddress"],
"description": dev_intf["description"],
"enabled": "true",
"forwarding": "true",
"name": dev_intf["name"]
}
if dev_intf.get("pciAddress"):
dev_intf["pciAddress"]
if dev_intf["type"] == "WAN":
intf["networkInterface"] = [
{
Expand Down

0 comments on commit 57c72a2

Please sign in to comment.