# ansible nxos bgp "restart bgp \<AS#\>"

**URL:** <https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906>\
**Category:** Ansible Project\
**Created:** [September 28, 2020, 2:18am UTC](https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906 "2020-09-28T02:18:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stack\_flow](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Post date:** [September 28, 2020, 2:18am UTC](https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906/1 "2020-09-28T02:18:38Z")

</div>

Hello,

I have to write ansible script for Cisco NXOS to restart bgp. I am looking “restart bgp \<AS#\>” but it looks ansible module doesn’t have it available. what are my options? how to accomplish it?

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [October 19, 2020, 5:37am UTC](https://forum.ansible.com/t/ansible-nxos-bgp-restart-bgp-as/33906/2 "2020-10-19T05:37:04Z")

</div>

Hello,

This seems to be an operational mode command and hence, won’t be covered by the resource specific BGP modules. Please use the [nxos\_command](https://docs.ansible.com/ansible/latest/collections/cisco/nxos/nxos_command_module.html) module to push this command.

Thank you.
