Skip to content

Conversation

@f2cmb
Copy link
Contributor

@f2cmb f2cmb commented Dec 5, 2025

proposal for #21925

This PR add new fields on Network port form (added an extra field status that seems also logical to add)

image

Inputs values are based on source in src/NetwortPort.php

@f2cmb
Copy link
Contributor Author

f2cmb commented Dec 8, 2025

removed Connection field status as it was not mentioned in the original issue (and test on GLPI gave me a doubt about my implementation), and add a number limitation on frontend-side, inspired by https://github.com/glpi-project/glpi/blob/11.0/bugfixes/templates/pages/setup/ldap/form.html.twig#L56 (dunno what is MTU tbh)

@trasher
Copy link
Contributor

trasher commented Dec 8, 2025

Is this one a draft or is it to review?

@f2cmb f2cmb marked this pull request as ready for review December 8, 2025 10:13

{{ fields.numberField('ifmtu', item.fields['ifmtu'], __('MTU'), {
min: 0,
max: 65535,
Copy link
Member

Choose a reason for hiding this comment

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

This value will probably be lower than 10000, but I do not think it is required to set a maximum here, as some users may complain that it is a too low limit.

Suggested change
max: 65535,

@cedric-anne cedric-anne changed the title add new fields to networkport form to handle Internal Status / IFMTU … Permit update of Internal Status and MTU of network ports Dec 8, 2025
@cedric-anne cedric-anne added this to the 11.0.5 milestone Dec 8, 2025
@cedric-anne cedric-anne merged commit 191cea5 into glpi-project:11.0/bugfixes Dec 9, 2025
8 checks passed
@f2cmb f2cmb deleted the 11.0/21925 branch December 10, 2025 08:49
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.

4 participants