Skip to content

Commit

Permalink
fix(nw-packet-forwarder): Fix vm addresses
Browse files Browse the repository at this point in the history
Change addressing scheme of nw-packet-fowarder

Signed-off-by: Manuel Bluhm <[email protected]>
  • Loading branch information
mbssrc authored and brianmcgillion committed Feb 4, 2025
1 parent 51b5714 commit 45c34cd
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ let
cfg = config.services.nw-packet-forwarder;
nw-packet-forwarder = pkgs.callPackage ../../../../packages/nw-packet-forwarder { };

getChromeVmEntry = builtins.filter (x: x.name == "chrome-vm") config.ghaf.networking.hosts.entries;
chromevmIpAddr = lib.head (builtins.map (x: x.ip) getChromeVmEntry);
chromevmMac = "02:00:00:03:11:01";

getNetVmEntry = builtins.filter (x: x.name == "net-vm") config.ghaf.networking.hosts.entries;
netVmInternalIp = lib.head (builtins.map (x: x.ip) getNetVmEntry);
chromevmIpAddr = config.ghaf.networking.hosts."chrome-vm".ipv4;
chromevmMac = config.ghaf.networking.hosts."chrome-vm".mac;
netVmInternalIp = config.ghaf.networking.hosts."net-vm".ipv4;

nwPcktFwdUser = "nwpcktfwd-admin";
in
Expand Down

0 comments on commit 45c34cd

Please sign in to comment.