Fix huawei bgp route and plugin validation/transform order#327
Merged
jdhall75 merged 3 commits intoJun 10, 2025
Conversation
Huawei has pagination by default and when the output exceeds 24 lines it expects the user to keep scrooling to display the output. This makes the netmiko time out. By passing "| no-more" the pagination will be disabled for the command
Create builtin plugin to transform input field before passing to Huawei device
Transformation must occur after validation, or else the transformation will possibly make the validation fail
jdhall75
approved these changes
Jun 10, 2025
jdhall75
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for submitting this! I know there are some people that are looking for this fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
| no-moreto the command, disableing the CLI paginationIP/MASKtoIP MASKas accepted by the Huawei CLIRelated Issues
Fixes #315
Fixes #187
Motivation and Context
Some built-in directives do not work on Huawei devices and Huawei routers are very popular in Brazil.
Tests
Tested changes on Debian 13 (trixie/sid) with Podman 4.9.3. All tests were made building the image with the compose file and executed as container, so Python, Next and everything else were in the versions defined on the Dockerfile.
Tested on two Huawei NE8000 Routers with multiple inputs: IPv4, IPv6, IPv4/mask, IPv6/mask