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

Network: add mtu setting #501

Merged
merged 1 commit into from Mar 4, 2019
Merged

Network: add mtu setting #501

merged 1 commit into from Mar 4, 2019

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Dec 7, 2018

This plumbs through the "mtu" top-level variable in the network XML.

It's not amazingly useful, as libvirt doesn't pass it through to the DHCP server, but... baby steps!

Copy link
Collaborator

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ciao @squeed thx for pr! 🎅 Looks good.

We are missing however to handle a case: if we have an existing network and we want to update the mtu value from an existing network ( example exiting network A mtu 2000 to 1000 fake values via terraform apply)

@MalloZup
Copy link
Collaborator

MalloZup commented Dec 7, 2018

@MalloZup
Copy link
Collaborator

MalloZup commented Dec 10, 2018

@squeed you will adress the comments in middle-term time? TIA. maybe next year, or when do you have time, feel free to do it. If you need need this urgently, i could help you adding the update call .let me know, ciao enjoy your day

@squeed
Copy link
Contributor Author

squeed commented Dec 11, 2018

ciao @MalloZup. I should get to this in the next few days, thanks a lot for the pointers!

@MalloZup
Copy link
Collaborator

@squeed yw, for any info feel free to ping. ok thx for info and take your time as needed 🍵

@inercia
Copy link
Contributor

inercia commented Jan 9, 2019

We are missing however to handle a case: if we have an existing network and we want to update the mtu value from an existing network ( example exiting network A mtu 2000 to 1000 fake values via terraform apply)

@MalloZup I think we will not be able to change the MTU dynamically, so I guess we will have to set ForceNew: true...

@MalloZup
Copy link
Collaborator

@squeed can you rebase on top? @inercia @dmacvicar feel free to review and share your pov on it

@MalloZup
Copy link
Collaborator

Closing due to stale. thx for pr feel free to reopen with rebase. Thx.!

@MalloZup MalloZup closed this Feb 22, 2019
@squeed
Copy link
Contributor Author

squeed commented Mar 1, 2019

@MalloZup Picking this back up, finally. MTU isn't changeable on live networks - how should I handle this?

@MalloZup
Copy link
Collaborator

MalloZup commented Mar 1, 2019

@squeed hi, just rebase with master

@MalloZup MalloZup reopened this Mar 1, 2019
Signed-off-by: Casey Callendrello <cdc@redhat.com>
@squeed
Copy link
Contributor Author

squeed commented Mar 1, 2019

Rebased and updated. Thanks!

BTW, I have a change in Libvirt 5.1 that sets mtu as a DHCP option too :-)

@MalloZup
Copy link
Collaborator

MalloZup commented Mar 1, 2019

@dmacvicar cc

@MalloZup
Copy link
Collaborator

MalloZup commented Mar 1, 2019

We have xslt which let you add it without implementing it in go.

@MalloZup
Copy link
Collaborator

MalloZup commented Mar 2, 2019

@squeed we decided following design goals:
https://github.com/dmacvicar/terraform-provider-libvirt#introduction--goals

This goals were made to follow kind of minimalism in term of design/maintenance and also focus on feature which would enable more the community.

I'm thinking that this PR is good per-se, but i am hesitating because of it

thx anyways.

I will let @dmacvicar and @inercia take decision on it

@squeed
Copy link
Contributor Author

squeed commented Mar 4, 2019

Hi there,

I understand where you are coming from - libvirt is definitely a large API surface.

I would argue MTU makes the cut - it is a single independent scalar property that is easily plumbed through. It doesn't really add any complexity. It is also hard to change on a running network, which makes it difficult to fix up after Terraform. Setting the MTU is definitely critical for Kubernetes clusters, since the vxlan overhead decreases significantly for larger packets. That's my use-case, FWIW.

So, IMHO, this would be a great feature to add.

@MalloZup
Copy link
Collaborator

MalloZup commented Mar 4, 2019

@squeed yep to me your PR is good to merge but i want to reach a consesus with other maintainers

@inercia
Copy link
Contributor

inercia commented Mar 4, 2019

I agree with @squeed: I think the MTU is an important parameter in a network and it should be part of the exposed interface in the provider.

@MalloZup MalloZup merged commit 81abc6f into dmacvicar:master Mar 4, 2019
@MalloZup
Copy link
Collaborator

MalloZup commented Mar 4, 2019

thx @squeed @inercia for this 👍

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

3 participants