Skip to content

Commit

Permalink
Replace deprecated netplan gateway4 token
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Dec 29, 2023
1 parent ec0a904 commit 21838a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/brand/bhyve/bootlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ def build_cloudinit_image(self, uuid, src, testmode):
"addresses": [addr],
}
if rtr:
data["gateway4"] = rtr
data["routes"] = [
{
"to": "0.0.0.0/0",
"via": rtr,
}
]

if not nsdone:
domain = self.findattr("dns-domain")
Expand Down

0 comments on commit 21838a3

Please sign in to comment.