anchor.diff:                    echo "checking ip ${address}..."
                     if out=$(ip addr add "${address}" dev "${i.name}" 2>&1); then
                       echo "added ip ${address}..."
  -                    restart_network_setup=true
                     elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
                       echo "failed to add ${address}"
                       exit 1
                     fi
  -                '')
  -              + optionalString (ips != [ ])
  -                ''
  -                  if [ "$restart_network_setup" = "true" ]; then
  -                    # Ensure that the default gateway remains set.
  -                    # (Flushing this interface may have removed it.)
  -                    ${config.systemd.package}/bin/systemctl try-restart --no-block network-setup.service
  -                  fi
  -                '';
  +                '');
               preStop = flip concatMapStrings (ips) (ip:
                   let
                     address = "${ip.address}/${toString ip.prefixLength}";
  
positive.code:             deps = map subsystemDevice v.interfaces;
            in
            { description = "Bond Interface ${n}";
              wantedBy = [ "network.target" (subsystemDevice n) ];
              bindsTo = deps;
              after = [ "network-pre.target" ] ++ deps
                ++ concatMap (i: [ "network-addresses-${i}.service" "network-link-${i}.service" ]) v.interfaces;
              before = [ "network-interfaces.target" (subsystemDevice n) ];
              serviceConfig.Type = "oneshot";
              serviceConfig.RemainAfterExit = true;
              path = [ pkgs.iproute pkgs.gawk ];
  
negative.code: 
          createTunDevice = i: nameValuePair "${i.name}-netdev"
            { description = "Virtual Network Interface ${i.name}";
              bindsTo = [ "dev-net-tun.device" ];
              after = [ "dev-net-tun.device" "network-pre.target" ];
              wantedBy = [ "network-setup.service" (subsystemDevice i.name) ];
              partOf = [ "network-setup.service" ];
              before = [ "network-setup.service" (subsystemDevice i.name) ];
              path = [ pkgs.iproute ];
              serviceConfig = {
                Type = "oneshot";
  