3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/virtualization/nixos-container
Martin Bornhold ac7edeebfd nixos-container: Make show-ip work together with ipv4 + netmask
The containers local address can be given as ipv4 only or with a subnetmask in
CIDR notation in the container configuration, see [1]. This works fine but the
'nixos-container show-ip' only supports plain ipv4 addresses without the netmask
suffix.

Changed the regex to also match in case of a CIDR netmask suffix.

[1] 9939032e35/nixos/modules/virtualisation/containers.nix (L382)
2017-11-16 20:25:45 +01:00
..
default.nix Revert "nixos-container: Use machinectl shell (#18825)" 2017-03-21 16:51:08 +01:00
nixos-container-completion.sh nixos-containers: init package (#16959) 2016-07-19 08:13:06 +02:00
nixos-container.pl nixos-container: Make show-ip work together with ipv4 + netmask 2017-11-16 20:25:45 +01:00