Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GAP Ansible Collection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
GÉANT Orchestration and Automation Team
GAP
GAP Ansible Collection
Merge requests
!149
iptrunk_checks: added LLDP checks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
iptrunk_checks: added LLDP checks
feature/nat-616-lldp
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
Aleksandr Kurbatov
requested to merge
feature/nat-616-lldp
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
dd7a573a
1 commit,
1 year ago
4 files
+
39
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
geant/gap_ansible/roles/iptrunk_checks/tasks/check_lldp.yaml
0 → 100644
+
31
−
0
Options
-
name
:
Juniper LLDP check
when
:
local_side.iptrunk_side_node.vendor == "juniper"
block
:
-
name
:
Get LLDP neighbors
junipernetworks.junos.junos_command
:
commands
:
-
show lldp neighbors
register
:
response
-
name
:
Show LLDP neighbors
ansible.builtin.debug
:
msg
:
"
{{
response.stdout_lines[0]
}}"
-
name
:
Nokia BFD check
when
:
local_side.iptrunk_side_node.vendor == "nokia"
block
:
-
name
:
Get LLDP neighbors
ansible.netcommon.netconf_rpc
:
rpc
:
action
xmlns
:
"
urn:ietf:params:xml:ns:yang:1"
content
:
|
<global-operations xmlns="urn:nokia.com:sros:ns:yang:sr:oper-global">
<md-cli-raw-command>
<md-cli-input-line>show system lldp neighbor</md-cli-input-line>
</md-cli-raw-command>
</global-operations>
display
:
json
register
:
out
-
name
:
Show LLDP neighbors
ansible.builtin.debug
:
msg
:
"
{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('
\n
')}}"
Loading