Skip to content

Commit

Permalink
Merge branch 'main' into new-ios_line
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte authored Nov 7, 2023
2 parents 90be92b + 617d81b commit 60577e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ jobs:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main
3 changes: 3 additions & 0 deletions changelogs/fragments/bgp_global_evpn_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ios_bgp_global - remote_as not mendatory for neighbors.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def populate_facts(self, connection, ansible_facts, data=None):
objs = bgp_global_parser.parse()
neighbor_list = objs.get("neighbors", {})
if neighbor_list:
objs["neighbors"] = sorted(
list(neighbor_list.values()),
key=lambda k, pk="neighbor_address": k[pk],
)
objs["neighbors"] = list(neighbor_list.values())

obj = utils.remove_empties(objs)

Expand Down

0 comments on commit 60577e6

Please sign in to comment.