Skip to content

add var for remote system ip in lldp tpl #1577

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

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Value REMOTE_SYSTEM_NAME (.*)
Value REMOTE_SYSTEM_DESCRIPTION (.+)
Value REMOTE_SYSTEM_CAPAB (.*)
Value REMOTE_SYSTEM_ENABLE_CAPAB (.*)

Value REMOTE_SYSTEM_MGMT_IP (.*)
Start
^Local Intf\s*?[:-]\s+${LOCAL_INTERFACE}
^Chassis id\s*?[:-]\s+${REMOTE_CHASSIS_ID}
Expand All @@ -17,7 +17,8 @@ Start
^System Description: -> Description
^System Description\s*-\s*${REMOTE_SYSTEM_DESCRIPTION}
^System Capabilities\s*?[:-]\s+${REMOTE_SYSTEM_CAPAB}
^Enabled Capabilities\s*?[:-]\s+${REMOTE_SYSTEM_ENABLE_CAPAB} -> Record
^Enabled Capabilities\s*?[:-]\s+${REMOTE_SYSTEM_ENABLE_CAPAB}
^\s+IP\:\s${REMPRT_SYSTEM_MGMT_IP} -> Record
Copy link
Member

Choose a reason for hiding this comment

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

What is remprt and where is this variable used?

Copy link
Author

@ratneshnagori ratneshnagori Mar 27, 2022

Choose a reason for hiding this comment

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

Actually correct name is REMOTE_SYSTEM_MGMT_IP. I will correct it.

This variable is being used to get remote system's management ip which can be used to build a network topology. Once you have remote system's management ip, then you can log into it and find more devices downstream.


Description
# Capture the entire line and go back to Neighbor state
Expand Down