Skip to content

Add dummy interfaces#115

Closed
lxnt wants to merge 1 commit intocanonical:mainfrom
lxnt:dummy
Closed

Add dummy interfaces#115
lxnt wants to merge 1 commit intocanonical:mainfrom
lxnt:dummy

Conversation

@lxnt
Copy link
Contributor

@lxnt lxnt commented Dec 4, 2019

Description

Split from #82

This is more like a place to discuss how to put dummy interfaces in netplan rather than a straight PR.
Besides, I'm not sure with what exactly to bring code coverage back to 100%
Let's maybe work on this? I'm using this code to force bridge intefaces up when they don't have any other interfaces added on configuration time. This is a real use case.

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Closes an open bug in Launchpad.

@lxnt lxnt changed the title add dummy interfaces Add dummy interfaces Dec 4, 2019
@cyphermox
Copy link
Contributor

But why is this required? I thought we'd already fixed bringing up VLANs and bridges with no members, as this requires setting "ConfigureWithoutCarrier=" and other keys at the systemd level?

I'm not fundamentally opposed to dummy devices, but I wonder if they wouldn't better fit elsewhere (like under ethernet, simply) since dummies are indeed a thing, but once you move into network hardware, you'll much more likely want to create loopback devices, which is something else that is not currently straightforward.

@lxnt
Copy link
Contributor Author

lxnt commented Dec 5, 2019

Hm.
This was a straightforward split from the #82 request, since the configuration I currently have does rely on them, but only for forcing bridges up.

I must have missed the bit with bridges being fixed already. I'll recheck and if it works and if no one other use case comes up this can of course be dropped.

@Frankkkkk
Copy link
Contributor

Frankkkkk commented Jan 14, 2020

Hi @cyphermox ,
In our company, we use dummy interfaces to store the IPs we want to announce via BGP. The workaround is to set them on the lo interface but this is not scalable as we only have one loopback per machine.

Our frr router running on the hosts announces all the ips on the bgp dummy interface and all the IPs with a higher metric that are on the bgp-failover dummy interface. They effectively act as sets but with the advantage of being understood by the kernel.

This seems to me to be a good use case. Don't hesitate if you need more info.
Cheers

PS: our solution can't work with empty bridges because you can't bring them UP (thus the router won't announce IPs on a DOWN interface).

@attila123
Copy link

Any updates please?

@slyon
Copy link
Contributor

slyon commented Mar 27, 2023

Any updates please?

This is a feature request, it has not been prioritized so far: https://bugs.launchpad.net/netplan/+bug/1774203

PRs are welcome (this PR would need some updates, to be ready for discussions).

daniloegea pushed a commit to daniloegea/netplan that referenced this pull request May 22, 2023
daniloegea pushed a commit to daniloegea/netplan that referenced this pull request May 22, 2023
daniloegea pushed a commit to daniloegea/netplan that referenced this pull request May 22, 2023
@slyon
Copy link
Contributor

slyon commented May 23, 2023

Closing this in favor of #361

@slyon slyon closed this May 23, 2023
@slyon slyon reopened this May 23, 2023
@slyon slyon closed this May 23, 2023
daniloegea pushed a commit to daniloegea/netplan that referenced this pull request May 24, 2023
daniloegea pushed a commit to daniloegea/netplan that referenced this pull request Jun 20, 2023
daniloegea pushed a commit that referenced this pull request Jun 21, 2023
This work is based on the PR #115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants