uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
nixos/tests/ndppd.nix
Normal file
60
nixos/tests/ndppd.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
import ./make-test-python.nix ({ pkgs, lib, ...} : {
|
||||
name = "ndppd";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ fpletz ];
|
||||
};
|
||||
|
||||
nodes = {
|
||||
upstream = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.tcpdump ];
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces = {
|
||||
eth1 = {
|
||||
ipv6.addresses = [
|
||||
{ address = "fd23::1"; prefixLength = 112; }
|
||||
];
|
||||
ipv6.routes = [
|
||||
{ address = "fd42::";
|
||||
prefixLength = 112;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
server = { pkgs, ... }: {
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv6.conf.all.forwarding" = "1";
|
||||
"net.ipv6.conf.default.forwarding" = "1";
|
||||
};
|
||||
environment.systemPackages = [ pkgs.tcpdump ];
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces = {
|
||||
eth1 = {
|
||||
ipv6.addresses = [
|
||||
{ address = "fd23::2"; prefixLength = 112; }
|
||||
];
|
||||
};
|
||||
};
|
||||
services.ndppd = {
|
||||
enable = true;
|
||||
proxies.eth1.rules."fd42::/112" = {};
|
||||
};
|
||||
containers.client = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.255.1";
|
||||
localAddress = "192.168.255.2";
|
||||
hostAddress6 = "fd42::1";
|
||||
localAddress6 = "fd42::2";
|
||||
config = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
server.wait_for_unit("multi-user.target")
|
||||
upstream.wait_for_unit("multi-user.target")
|
||||
upstream.wait_until_succeeds("ping -c5 fd42::2")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue