Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayobe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kayobe
Commits
9d5a671f
Commit
9d5a671f
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Filter out switch port descriptions on Ruckus switches"
parents
611111b8
010681d7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/group_vars/all/inspector
+8
-7
8 additions, 7 deletions
ansible/group_vars/all/inspector
releasenotes/notes/filter-out-ruckus-lldp-port-description-ad2b0774609aedbf.yaml
+6
-0
6 additions, 0 deletions
...er-out-ruckus-lldp-port-description-ad2b0774609aedbf.yaml
with
14 additions
and
7 deletions
ansible/group_vars/all/inspector
+
8
−
7
View file @
9d5a671f
...
@@ -194,24 +194,25 @@ inspector_rule_lldp_switch_port_desc_to_name:
...
@@ -194,24 +194,25 @@ inspector_rule_lldp_switch_port_desc_to_name:
op: "is-empty"
op: "is-empty"
invert: True
invert: True
# Filter out switch port descriptions using the switch's interface names.
# Filter out switch port descriptions using the switch's interface names.
# On some switches (including Dell Network OS 9.10(0.1)), the port
# On some switches (including Dell Network OS 9.10(0.1) and some Ruckus
# description TLV is sent but contains the interface name rather than the
# switches), the port description TLV is sent but contains the interface
# interface's description.
# name rather than the interface's description. Dell switches use a space
# character between port type and port number, while Ruckus switches don't.
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
op: "matches"
op: "matches"
value: "^GigabitEthernet ([0-9/]*)$"
value: "^GigabitEthernet
?
([0-9/]*)$"
invert: True
invert: True
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
op: "matches"
op: "matches"
value: "^TenGigabitEthernet ([0-9/]*)$"
value: "^TenGigabitEthernet
?
([0-9/]*)$"
invert: True
invert: True
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
op: "matches"
op: "matches"
value: "^fortyGigE ([0-9/]*)$"
value: "^fortyGigE
?
([0-9/]*)$"
invert: True
invert: True
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
- field: "data://all_interfaces.{{inspector_rule_var_lldp_switch_port_interface}}.lldp_processed.switch_port_description"
op: "matches"
op: "matches"
value: "^Port-channel ([0-9/]*)$"
value: "^Port-channel
?
([0-9/]*)$"
invert: True
invert: True
actions:
actions:
- action: "set-attribute"
- action: "set-attribute"
...
...
This diff is collapsed.
Click to expand it.
releasenotes/notes/filter-out-ruckus-lldp-port-description-ad2b0774609aedbf.yaml
0 → 100644
+
6
−
0
View file @
9d5a671f
---
issues
:
-
|
Fixes an issue where the default inspector rule setting node names from
LLDP switch port descriptions would fail to filter out interface names on
Ruckus switches.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment