Skip to content
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

nxos_bgp_neighbor - add local_as attributes [no-prepend | [replace-as |dual-as]] #57703

Conversation

Projects
None yet
3 participants
@jacobsnapp
Copy link

commented Jun 11, 2019

SUMMARY

Added functionality to utilise additional attributes with the local-as command in nxos_bgp_neighbor module.

local-as autonomous-system-number [ no-prepend | replace-as [ dual-as ]]

This functionality has been implemented through the following boolean variables (default: False)

  • local_as_no_prepend
  • local_as_replace_as
  • local_as_dual_as
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

nxos_bgp_neighbor

ADDITIONAL INFORMATION

I came across a use case that required these addditional attributes to convert our NXOS infrastructure BGP configuration to IaC using core ansible modules.

Example pulled from integration test:

  - name: "Configure BGP Neighbor Local AS"
    nxos_bgp_neighbor: &configure_local_as
      asn: 65535
      neighbor: 192.0.2.3/32
      vrf: "{{ item }}"
      local_as: 65523
      local_as_no_prepend: true
      local_as_replace_as: true
      local_as_dual_as: false
      state: present
    with_items: "{{ vrfs }}"
    register: result
Snapp,Jacob
Added functionality to have additional local_as attributes [local_as_…
…no_prepend local_as_replace_as local_as_dual_as]
@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2019

@jacobsnapp, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

Snapp,Jacob added some commits Jun 11, 2019

Snapp,Jacob
Snapp,Jacob
@jacobsnapp

This comment has been minimized.

Copy link
Author

commented Jun 11, 2019

Shippable is having some issues with finding my commit. I am going to close this, re-fork and try again.

00:00 ERROR: Commit 476f297424c37bbdcd760634b152f4137aef3e6f was not found:
00:00 
00:00 fatal: bad object 476f297424c37bbdcd760634b152f4137aef3e6f
00:00 
00:00 GitHub may not have fully replicated the commit across their infrastructure.
00:00 It is also possible the commit was removed by a force push between job creation and execution.
00:00 Find the latest run for the pull request and restart failed jobs as needed.
00:00 + cleanup
00:00 + find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit
00:00 + grep -q .
00:00 + rmdir shippable/testresults/
00:00 + cp -a test/results/junit/ shippable/testresults/
00:00 + cp -a test/results/data/ shippable/testresults/
00:00 + cp -aT test/results/bot/ shippable/testresults/

@jacobsnapp jacobsnapp closed this Jun 11, 2019

@jacobsnapp jacobsnapp deleted the jacobsnapp:nxos_bgp_neighbor_local_as_attributes branch Jun 11, 2019

@sivel sivel removed the needs_triage label Jun 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.