Loading nixos/tests/frr.nix +1 −1 Original line number Diff line number Diff line Loading @@ -99,6 +99,6 @@ import ./make-test-python.nix ({ pkgs, ... }: gw.wait_until_succeeds("vtysh -c 'show ip route' | grep '^O>'") with subtest("Test ICMP"): client.wait_until_succeeds("ping -c 3 server >&2") client.wait_until_succeeds("ping -4 -c 3 server >&2") ''; }) pkgs/servers/frr/default.nix +11 −12 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ , readline , rtrlib , protobufc , zeromq # tests , nettools Loading @@ -45,7 +46,6 @@ , numMultipath ? 64 , watchfrrSupport ? true , cumulusSupport ? false , datacenterSupport ? true , rtadvSupport ? true , irdpSupport ? true , routeReplacementSupport ? true Loading Loading @@ -84,15 +84,15 @@ lib.warnIf (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform)) "cannot enable SNMP support due to cross-compilation issues with net-snmp-config" stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { pname = "frr"; version = "10.0.1"; version = "10.1"; src = fetchFromGitHub { owner = "FRRouting"; repo = pname; rev = "${pname}-${version}"; hash = "sha256-bY5SSF/fmKQc8ECPik0v/ZlUiFsbZhwG2C5pbmoMzwQ="; repo = finalAttrs.pname; rev = "${finalAttrs.pname}-${finalAttrs.version}"; hash = "sha256-pmFdxL8QpyXvpX2YiSOZ+KIoNaj1OOH6/qnVAWZLE9s="; }; patches = [ Loading Loading @@ -122,10 +122,11 @@ stdenv.mkDerivation rec { openssl pam pcre2 protobufc python3 readline rtrlib protobufc zeromq ] ++ lib.optionals stdenv.isLinux [ libcap ] ++ lib.optionals snmpSupport [ Loading @@ -141,7 +142,7 @@ stdenv.mkDerivation rec { # cross-compiling: clippy is compiled with the build host toolchain, split it out to ease # navigation in dependency hell clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = version; frrSource = src; }; clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = finalAttrs.version; frrSource = finalAttrs.src; }; configureFlags = [ "--disable-silent-rules" Loading @@ -155,7 +156,7 @@ stdenv.mkDerivation rec { "--localstatedir=/run/frr" "--sbindir=$(out)/libexec/frr" "--sysconfdir=/etc/frr" "--with-clippy=${clippy-helper}/bin/clippy" "--with-clippy=${finalAttrs.clippy-helper}/bin/clippy" # general options (lib.strings.enableFeature snmpSupport "snmp") (lib.strings.enableFeature rpkiSupport "rpki") Loading Loading @@ -193,8 +194,6 @@ stdenv.mkDerivation rec { (lib.strings.enableFeature ospfApi "ospfapi") # Cumulus options (lib.strings.enableFeature cumulusSupport "cumulus") # Datacenter options (lib.strings.enableFeature datacenterSupport "datacenter") ]; postPatch = '' Loading Loading @@ -243,4 +242,4 @@ stdenv.mkDerivation rec { }; passthru.tests = { inherit (nixosTests) frr; }; } }) Loading
nixos/tests/frr.nix +1 −1 Original line number Diff line number Diff line Loading @@ -99,6 +99,6 @@ import ./make-test-python.nix ({ pkgs, ... }: gw.wait_until_succeeds("vtysh -c 'show ip route' | grep '^O>'") with subtest("Test ICMP"): client.wait_until_succeeds("ping -c 3 server >&2") client.wait_until_succeeds("ping -4 -c 3 server >&2") ''; })
pkgs/servers/frr/default.nix +11 −12 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ , readline , rtrlib , protobufc , zeromq # tests , nettools Loading @@ -45,7 +46,6 @@ , numMultipath ? 64 , watchfrrSupport ? true , cumulusSupport ? false , datacenterSupport ? true , rtadvSupport ? true , irdpSupport ? true , routeReplacementSupport ? true Loading Loading @@ -84,15 +84,15 @@ lib.warnIf (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform)) "cannot enable SNMP support due to cross-compilation issues with net-snmp-config" stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { pname = "frr"; version = "10.0.1"; version = "10.1"; src = fetchFromGitHub { owner = "FRRouting"; repo = pname; rev = "${pname}-${version}"; hash = "sha256-bY5SSF/fmKQc8ECPik0v/ZlUiFsbZhwG2C5pbmoMzwQ="; repo = finalAttrs.pname; rev = "${finalAttrs.pname}-${finalAttrs.version}"; hash = "sha256-pmFdxL8QpyXvpX2YiSOZ+KIoNaj1OOH6/qnVAWZLE9s="; }; patches = [ Loading Loading @@ -122,10 +122,11 @@ stdenv.mkDerivation rec { openssl pam pcre2 protobufc python3 readline rtrlib protobufc zeromq ] ++ lib.optionals stdenv.isLinux [ libcap ] ++ lib.optionals snmpSupport [ Loading @@ -141,7 +142,7 @@ stdenv.mkDerivation rec { # cross-compiling: clippy is compiled with the build host toolchain, split it out to ease # navigation in dependency hell clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = version; frrSource = src; }; clippy-helper = buildPackages.callPackage ./clippy-helper.nix { frrVersion = finalAttrs.version; frrSource = finalAttrs.src; }; configureFlags = [ "--disable-silent-rules" Loading @@ -155,7 +156,7 @@ stdenv.mkDerivation rec { "--localstatedir=/run/frr" "--sbindir=$(out)/libexec/frr" "--sysconfdir=/etc/frr" "--with-clippy=${clippy-helper}/bin/clippy" "--with-clippy=${finalAttrs.clippy-helper}/bin/clippy" # general options (lib.strings.enableFeature snmpSupport "snmp") (lib.strings.enableFeature rpkiSupport "rpki") Loading Loading @@ -193,8 +194,6 @@ stdenv.mkDerivation rec { (lib.strings.enableFeature ospfApi "ospfapi") # Cumulus options (lib.strings.enableFeature cumulusSupport "cumulus") # Datacenter options (lib.strings.enableFeature datacenterSupport "datacenter") ]; postPatch = '' Loading Loading @@ -243,4 +242,4 @@ stdenv.mkDerivation rec { }; passthru.tests = { inherit (nixosTests) frr; }; } })