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: hp_comware_display_ip_routing-table & hp_comware_display_device_manuinfo #623

Merged
merged 8 commits into from
Apr 29, 2020

Conversation

xdai555
Copy link
Contributor

@xdai555 xdai555 commented Mar 15, 2020

ISSUE TYPE
  • New Template Pull Request
COMPONENT
  1. hp_comware_display_ip_routing-table,hp_comware,display ip routing-table
  2. hp_comware_display_device_manuinfo,hp_comware,display device manuinfo
SUMMARY
  1. hp_comware_display_ip_routing-table
    Reference: cisco_ios_show_ip_route
  2. display_device_manuinfo
    The following device types have been tested:
    • Switches:
      • S125 series (Comware v7)
      • S6800 series (Comware v7)
      • S5560 (Comware v7)
      • S5500 (Comware v5)
      • S58 series (Comware v7 Simware)
    • Routers:
      • SR66 series (Comware v5 old version)
      • SR88 series (Comware v5)
      • MSR36 series (Comware v7 Simware)

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.

@xdai555 Can you please add matches for each line of text, and end each State with:

  ^\s*$$
  ^. -> Error

@xdai555
Copy link
Contributor Author

xdai555 commented Mar 29, 2020

The 'display ip routing-table' template needs to match each line, add '^. -> Error' is useless.
And 'display device manuinfo' update template to match every hardware even if it doesn't have a serial number.

@jmcgill298
Copy link
Contributor

The 'display ip routing-table' template needs to match each line, add '^. -> Error' is useless.
And 'display device manuinfo' update template to match every hardware even if it doesn't have a serial number.

This is not useless, as the intent is to catch output that is different from the known output and report back which line is not being captured. CLI output is known to vary between platforms, OS versions, and rare conditions that alter table data. Even knowing that this would account for all data today, it doesn't ensure that future updates will comply.

@FragmentedPacket FragmentedPacket added the changes_requested Waiting on user to address feedback label Apr 15, 2020
@FragmentedPacket
Copy link
Contributor

@xdai555 As Jacob said, those are something we require and it does help ensure when the output changes, it will throw an error and help locate the difference in output when trying to troubleshoot the template in the future.

Please update the templates to NTC Templates standard and then we'll get this merged in.

@xdai555
Copy link
Contributor Author

xdai555 commented Apr 28, 2020

@FragmentedPacket @jmcgill298 I have some problems these days and now they have been solved.
Sorry for keeping you waiting.

^\s?MAC_ADDRESS\s*:\s*${MAC_ADDRESS}
^\s?MANUFACTURING_DATE\s*:\s*${MANUFACTURING_DATE}
^\s?VENDOR_NAME\s*:\s*${VENDOR_NAME} -> Record Start
^. -> Error
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mind adding ^\s*$$ above the error line?

Do you mind also changing the beginning \s? to \s* just in case they do change to more than one space at the beginning?

Those should be the last changes and then we can get these merged in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will follow the format next time.
Practice makes perfect. ^_^

@FragmentedPacket FragmentedPacket merged commit fb64024 into networktocode:master Apr 29, 2020
@jmcgill298
Copy link
Contributor

Thanks @xdai555

thomasblass pushed a commit to thomasblass/ntc-templates that referenced this pull request Oct 25, 2020
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
guillaume-mbali pushed a commit to unyc-io/ntc-templates that referenced this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes_requested Waiting on user to address feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants