Skip to content

Instantly share code, notes, and snippets.

@rohitthakur2590
Last active March 29, 2023 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitthakur2590/6321fa0d9d23e5b726b7deaedcaa2094 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/6321fa0d9d23e5b726b7deaedcaa2094 to your computer and use it in GitHub Desktop.
BGP Gather operation
PLAY [ios] ******************************************************************************************************************************************************************
TASK [Network BGP Manager] **************************************************************************************************************************************************
TASK [network.bgp.run : Include tasks] **************************************************************************************************************************************
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/bgp/roles/run/tasks/includes/gather.yaml for 192.168.122.220 => (item={'name': 'gather'})
TASK [Invoke gather function] **********************************************************************************************************************************************
TASK [network.base.resource_manager : Run the platform specific tasks] ******************************************************************************************************
[WARNING]: TASK: network.base.resource_manager : Run the platform specific tasks: The loop variable 'item' is already in use. You should set the `loop_var` value in the
`loop_control` option for the task to something else to avoid variable collisions and unexpected behavior.
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/./gather.yaml for 192.168.122.220 => (item=/home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/gather.yaml)
TASK [network.base.resource_manager : Gather the supported resource modules] ************************************************************************************************
ok: [192.168.122.220]
TASK [network.base.resource_manager : Set Resources] ************************************************************************************************************************
skipping: [192.168.122.220]
TASK [network.base.resource_manager : Set network resorces] *****************************************************************************************************************
ok: [192.168.122.220]
TASK [network.base.resource_manager : Include build tasks] ******************************************************************************************************************
[WARNING]: TASK: network.base.resource_manager : Include build tasks: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control`
option for the task to something else to avoid variable collisions and unexpected behavior.
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yml for 192.168.122.220 => (item=bgp_address_family)
included: /home/rothakur/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/build.yml for 192.168.122.220 => (item=bgp_global)
TASK [network.base.resource_manager : Run the platform facts module] ********************************************************************************************************
ok: [192.168.122.220]
TASK [network.base.resource_manager : Resource Facts] ***********************************************************************************************************************
ok: [192.168.122.220] => {
"msg": {
"ansible_connection": "ansible.netcommon.network_cli",
"ansible_network_os": "cisco.ios.ios",
"changed": false,
"failed": false,
"gathered": {
"as_number": "500"
},
"resource_module_name": "cisco.ios.ios_bgp_address_family"
}
}
TASK [network.base.resource_manager : Include file write task] **************************************************************************************************************
skipping: [192.168.122.220]
TASK [network.base.resource_manager : Run the platform facts module] ********************************************************************************************************
ok: [192.168.122.220]
TASK [network.base.resource_manager : Resource Facts] ***********************************************************************************************************************
ok: [192.168.122.220] => {
"msg": {
"ansible_connection": "ansible.netcommon.network_cli",
"ansible_network_os": "cisco.ios.ios",
"changed": false,
"failed": false,
"gathered": {
"as_number": "500",
"bgp": {
"log_neighbor_changes": true
},
"neighbors": [
{
"neighbor_address": "12.0.0.1",
"peer_group": "CCIE"
},
{
"neighbor_address": "23.0.0.1",
"remote_as": "500"
},
{
"neighbor_address": "CCIE",
"remote_as": "500",
"update_source": "Loopback0",
"version": 4
}
],
"networks": [
{
"address": "10.0.0.0"
}
]
},
"resource_module_name": "cisco.ios.ios_bgp_global"
}
}
TASK [network.base.resource_manager : Include file write task] **************************************************************************************************************
skipping: [192.168.122.220]
PLAY RECAP ******************************************************************************************************************************************************************
192.168.122.220 : ok=10 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment