Unverified Commit eade8e0b authored by Nico Felbinger's avatar Nico Felbinger
Browse files

nixos/ifstate: remove netns so ifstate can identify interface

This test has never worked because when 'identify' is not configured,
ifstate searches for an interface with the specified name inside the
defined network namespace. However, virtualisation.interfaces cannot
place an interface into a specific network namespace, and without
identifying details (such as a MAC address or bus ID), ifstate is
unable to locate the correct interface.

Removing the network namespace avoids this problem.
parent 49c2e658
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -10,20 +10,19 @@ let
    {
      enable = true;
      settings = {
        namespaces.outside.interfaces.eth1 = {
        interfaces = {
          eth1 = {
            addresses = [ "2001:0db8:a::${builtins.toString id}/64" ];
            link = {
              state = "up";
              kind = "physical";
            };
          };
        interfaces = {
          wg0 = {
            addresses = [ "2001:0db8:b::${builtins.toString id}/64" ];
            link = {
              state = "up";
              kind = "wireguard";
              bind_netns = "outside";
            };
            wireguard = {
              private_key = "!include ${pkgs.writeText "wg_priv.key" wgPriv}";