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

New template for NGFW FortiGate #1872

Merged
merged 15 commits into from
Oct 15, 2024
Merged

Conversation

pnpestov
Copy link
Contributor

The template for processing the command:
diagnose lldprx port neighbor details <port-name>

New Template: fortinet_diagnose_lldprx_port_neighbor_details_port-name.textfsm
fortinet_diagnose_lldprx_port_neighbor_details_port-name.textfsm, .*, fortinet, d[[iagnose]] lldpr[[x]] p[[ort]] n[[eighbor]] d[[etails]] (\S+)
Create fortinet_diagnose_lldprx_port_neighbor_details_port-name.yml
Copy link
Contributor

@jmcgill298 jmcgill298 left a comment

Choose a reason for hiding this comment

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

Thanks @pnpestov, just a couple of minor requets

@pnpestov
Copy link
Contributor Author

@jmcgill298
Thanks for the suggestions! I tried to convey the names of the variables in their original form. But if purposeful work is really underway to systematize the names, then your proposal is rational.

pnpestov and others added 4 commits October 11, 2024 08:14
…_details_port-name.textfsm


MAC -> MAC_ADDRESS

Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com>
…_details_port-name.textfsm


Error Directive

Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com>
…_details_port-name.textfsm


MAC -> MAC_ADDRESS

Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com>
…/fortinet_diagnose_lldprx_port_neighbor_details_port-name.yml


mac -> mac_address

Co-authored-by: Jacob McGill <9847006+jmcgill298@users.noreply.github.com>
@pnpestov
Copy link
Contributor Author

@jmcgill298
"CI / yamllint (pull_request) Failing after 1m" - It is suspected that this is because of the character '\r\n' - adrienverge/yamllint#102 ?ysclid=m24s0ytu3361652791 What are my next steps?

@jmcgill298
Copy link
Contributor

@jmcgill298 "CI / yamllint (pull_request) Failing after 1m" - It is suspected that this is because of the character '\r\n' - adrienverge/yamllint#102 ?ysclid=m24s0ytu3361652791 What are my next steps?

We have provided scripts to help with this: https://github.com/networktocode/ntc-templates/blob/master/docs/dev/dev_parser.md#development-helper-scripts

@jmcgill298
Copy link
Contributor

@pnpestov I created pnpestov#1

Template name in length order (longest to shortest)
@jmcgill298 jmcgill298 merged commit 07db0d8 into networktocode:master Oct 15, 2024
14 checks passed
@pnpestov
Copy link
Contributor Author

@jmcgill298
Thanks for the help!

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.

2 participants