Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Mikrotik's '/ip neighbor print detail' template #1808

Conversation

PavloSkliarenko
Copy link
Contributor

No description provided.

Comment on lines 43 to 44
# ^\s*(?:${NUMBER})?(?:\s+interface=${INTERFACE})?(?:\s+address=${IP_ADDRESS})?(?:\s+address4=${IPV4_ADDRESS})?(?:\s+address6=${IPV6_ADDRESS})?(?:\s+mac-address=${MAC_ADDRESS})?(:?\s+identity="${IDENTITY}")?(?:\s+platform="${PLATFORM}")?(?:\s+version="${VERSION}")?(:?\s+unpack=${UNPACK})?(?:\s+age=${AGE})?(?:\s+uptime=${UPTIME})?(?:\s+software-id="${SOFTWARE_ID}")?(?:\s+board="${BOARD}")?(?:\s+ipv6=${IPV6})?(?:\s+interface-name="${INTERFACE_NAME}")?(?:\s+system-description="${SYSTEM_DESCRIPTION}")?(?:\s+system-caps="?${SYSTEM_CAPS}"?)?(:?\s+system-caps-enabled="?${SYSTEM_CAPS_ENABLED}"?)?\s*$$
# ^. -> Error
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# ^\s*(?:${NUMBER})?(?:\s+interface=${INTERFACE})?(?:\s+address=${IP_ADDRESS})?(?:\s+address4=${IPV4_ADDRESS})?(?:\s+address6=${IPV6_ADDRESS})?(?:\s+mac-address=${MAC_ADDRESS})?(:?\s+identity="${IDENTITY}")?(?:\s+platform="${PLATFORM}")?(?:\s+version="${VERSION}")?(:?\s+unpack=${UNPACK})?(?:\s+age=${AGE})?(?:\s+uptime=${UPTIME})?(?:\s+software-id="${SOFTWARE_ID}")?(?:\s+board="${BOARD}")?(?:\s+ipv6=${IPV6})?(?:\s+interface-name="${INTERFACE_NAME}")?(?:\s+system-description="${SYSTEM_DESCRIPTION}")?(?:\s+system-caps="?${SYSTEM_CAPS}"?)?(:?\s+system-caps-enabled="?${SYSTEM_CAPS_ENABLED}"?)?\s*$$
# ^. -> Error
^\s*$$
^. -> Error

We still need to account for missing data

@jmcgill298 jmcgill298 added the changes_requested Waiting on user to address feedback label Aug 8, 2024
@jmcgill298 jmcgill298 merged commit 9a6e4d4 into networktocode:master Aug 9, 2024
14 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
changes_requested Waiting on user to address feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants