ansible-collections / ansible.network

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS.
GNU General Public License v3.0
18 stars 18 forks source link

Proposal: Ansible Network Validated Content BGP Application #33

Closed rohitthakur2590 closed 1 year ago

rohitthakur2590 commented 2 years ago

Proposal:

Author: Rohit Thakur (@rohitthakur2590)

Date: 2022/06/21

Motivation

Describe the reasons for this proposal. Provide Network BGP Vaidated Content to perform BGP health checks and manage BGP resources.

Problems

Solution proposal

health_checks.yaml:

---
- hosts: junos
  tasks:
  - name: BGP Manager
    include_role:
      name: ansible.bgp.run
    vars:
      actions:
        - name: health_check
          vars:
            details: True
            checks:
              - name: all_neighbors_up
              - name: all_neighbors_down
              - name: min_neighbors_up
                min_count: 

bgp_persist.yaml:

---
- hosts: junos
  tasks:
  - name: BGP Manager
    include_role:
      name: ansible.bgp.run
    vars:
      actions:
        - name: persist

bgp_persist.yaml:

---
- hosts: junos
  tasks:
  - name: BGP Manager
    include_role:
      name: ansible.bgp.run
    vars:
      actions:
        - name: gather

bgp_persist.yaml:

---
- hosts: junos
  tasks:
  - name: BGP Manager
    include_role:
      name: ansible.bgp.run
    vars:
      actions:
        - name: deploy