Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xen service: fix xen-bridge not setting the configured netmask #25281

Merged
merged 1 commit into from May 6, 2017

Conversation

michalpalka
Copy link

The xen-bridge service accepts the option prefixLength, but does not
use it to set the actual netmask on the bridge. This commit makes
it set the correct netmask.

Motivation for this change

As mentioned in #24588, the xen-bridge service does not set the correct netmask on the bridge interface when the prefixLength option is used. Instead, the default netmask for the network class seems to be set.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

The xen-bridge service accepts the option prefixLength, but does not
use it to set the actual netmask on the bridge. This commit makes
it set the correct netmask.
@mention-bot
Copy link

@michalpalka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @oxij and @peti to be potential reviewers.

@praduca
Copy link
Contributor

praduca commented May 3, 2017

This close the problem as seen on #24588

@joachifm
Copy link
Contributor

joachifm commented May 5, 2017

cc @ts468

@joachifm joachifm merged commit e2f9c1b into NixOS:master May 6, 2017
@joachifm
Copy link
Contributor

joachifm commented May 6, 2017

Should this be picked to the release branch as well?

@michalpalka
Copy link
Author

I don't have a strong opinion on this. Probably not many people rely on this, so I am not sure if it is worth doing unless @praduca needs it for anything.

@praduca
Copy link
Contributor

praduca commented May 11, 2017

Actually, i dont, i only noticed it when trying to use xen. I cant even say if i will need it, i use xen on other systems and was only testing it on nixos...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants