NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.29k stars 13.54k forks source link

Mininet is completely broken #214730

Open autrimpo opened 1 year ago

autrimpo commented 1 year ago

Describe the bug

In its current state, Mininet is unusable. The wrapper does not work correctly - the mn executable can't find the mininet modules. Moreover, it seems that the version of openswitch in nixpkgs is not compatible: it calls the dpctl command, and even symlinking ovs-dpctl to dpctl does not work, as the they use e.g. deldp instead of the current del-dp. Going through Mininet sources and install scripts, it looks like they use v1.4?

Steps To Reproduce

Steps to reproduce the behavior:

  1. set programs.mininet.enable = true
  2. run sudo mn

Notify maintainers

@teto

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.2, NixOS, 22.11 (Raccoon)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"home-manager-21.11, nixos-21.11.334934.8a053bc2255, nixos-unstable-22.05pre342264.5b091d4fbe3"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
teto commented 1 year ago

I haven't used mininet in several years, do you want to become maintainer ?

autrimpo commented 1 year ago

I don't use mininet either, I was preparing some assignments for students and thought we could use it as part of that. Gave up when I ran into the issues above. So unfortunately, I do not have the experience or capacity to maintain it, but I'll be happy to share the ad-hoc fixes I made along the way in case anyone decides to pick it up.