diff options
author | Martin Bornhold <mb@bo-tech.de> | 2017-11-16 13:55:20 +0100 |
---|---|---|
committer | Martin Bornhold <mb@bo-tech.de> | 2017-11-16 20:25:45 +0100 |
commit | ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9 (patch) | |
tree | 3f07032d9066a4902b0cc2f46b7c5656cf6f5986 /nixos | |
parent | 55851579d9314de21c094ec09d78e9c9fb3a366e (diff) | |
download | nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar.gz nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar.bz2 nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar.lz nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar.xz nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.tar.zst nixpkgs-ac7edeebfd4ca45d4c6569f36dc5d6dd10aa58e9.zip |
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] https://github.com/NixOS/nixpkgs/blob/9939032e35bb144bc8f6b57ed6325089910f738c/nixos/modules/virtualisation/containers.nix#L382
Diffstat (limited to 'nixos')
0 files changed, 0 insertions, 0 deletions