Skip to content

Conversation

@brandondrm
Copy link

The original script worked great, but I wanted to be able to set static descriptions on a port and still leverage the tool.

What I've done was to add a configurable text deliminator that separates my static text vs. what gets replaced. ("==>" as a global variable in this pull request) Any data before this deliminator would be preserved, anything after gets wiped and rewritten.

One of the usages I had was noting of circuit IDs on WAN connected ports. This allows me to keep the static description there, but still get the benefits of the script.

@rbcollins123
Copy link

+1 for this! The ability to define your own delimiter, preserve existing configs by adding the delimiter to the end of any static descriptions, or have statics wiped out by having no delimiter covers all use-cases. Rarely is LLDP data the only thing you'd want in the description for all ports on a device so making it selectable is nice.

@phil-dileo phil-dileo self-assigned this Dec 19, 2016
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.

3 participants