Skip to content

Adding more link_speed options#622

Open
crazzy wants to merge 4 commits intoPaloAltoNetworks:developfrom
crazzy:develop
Open

Adding more link_speed options#622
crazzy wants to merge 4 commits intoPaloAltoNetworks:developfrom
crazzy:develop

Conversation

@crazzy
Copy link
Copy Markdown

@crazzy crazzy commented May 16, 2025

Description

I'm adding more options for the link_speed parameter to the panos_interface module as there are many more valid link speeds than already in the module.

Motivation and Context

I've made the PR since I need this change in order to be able to set the link speed of some of the interfaces on my PA-3410 manually when automatic detection of link speed doesn't work. I can set it in the GUI, but I need to also be able to set it using ansible since I use ansible to automate the configuration.

How Has This Been Tested?

This has been tested by setting link_speed to 25000 using a PA-3410 as target device. It has exactly the same effect as setting 25000 as the link speed using the GUI. I did no other tests but figured I'll add a few more link speed options anyway since other people might find 10G/40G/100G link speeds useful.

I haven't looked overly deep into the code, but I reckon this shouldn't impact anything else meaningfully.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

I'm not sure if there's any documentation external to the file, I tried looking for it, but didn't find anything. I don't know whether this affects tests and don't know where I can see whether or not the tests passes but seeing how small the change is I reckon there's not much testing to be done here.

I skimmed through the contributing document, but figured that was a whole bunch of unnecessary work for a change this small. Might seem arrogant but hard pass on that for this change.

  • I have updated the documentation accordingly.
  • [x ] I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

crazzy and others added 4 commits May 16, 2025 18:29
This has been tested with link_speed=25000 with a PA-3410
as the target device. Haven't tested the rest but they
should be perfectly valid, and it might in some cases be
necessary to manually set the link speed for links with
equipment from other vendors.
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.

3 participants