Skip to content
Snippets Groups Projects
Commit 2ea32c8d authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Merge branch 'feature/nat-869-pe-promotion-checks' into 'develop'

P to PE: PRE and POST checks

See merge request !199
parents 5e212abf d096d0f7
No related branches found
No related tags found
1 merge request!199P to PE: PRE and POST checks
Pipeline #90782 passed
../../../base_config_checks/templates/base_config_single_command.j2
\ No newline at end of file
- name: "Execute {{ item.command }}"
ansible.netcommon.netconf_rpc:
rpc: action
xmlns: "urn:ietf:params:xml:ns:yang:1"
content: "{{ lookup('ansible.builtin.template', 'routers/{{ subscription.router.vendor }}/checks_single_command.j2') }}"
display: json
register: out
- name: "Results of {{ item.command }}"
ansible.builtin.debug:
msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
- name: Print the ID - name: Print the ID
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ opid }}" msg: "{{ opid }}"
#
- name: Include ISIS overload tasks # - name: Include ISIS overload tasks
when: verb in ['set_isis_overload', 'remove_isis_overload'] # when: verb in ['set_isis_overload', 'remove_isis_overload']
ansible.builtin.include_tasks: configure_isis_overload.yaml # ansible.builtin.include_tasks: configure_isis_overload.yaml
- name: Include templates compilation - name: Include templates compilation
when: verb in [ 'deploy_pe_base_config', 'update_sdp_mesh' , 'deploy_routing_instances', 'delete_default_routes' ] when: verb in [ 'deploy_pe_base_config', 'update_sdp_mesh' , 'deploy_routing_instances', 'delete_default_routes' ]
...@@ -56,6 +56,16 @@ ...@@ -56,6 +56,16 @@
when: verb in [ 'deploy_pe_base_config', 'update_sdp_mesh', 'deploy_routing_instances', 'delete_default_routes' ] when: verb in [ 'deploy_pe_base_config', 'update_sdp_mesh', 'deploy_routing_instances', 'delete_default_routes' ]
ansible.builtin.include_tasks: deploy.yaml ansible.builtin.include_tasks: deploy.yaml
- name: PRE checks
when: verb == "post_checks"
ansible.builtin.include_tasks: command_checks.yaml
loop: "{{ pre_check_commands }}"
- name: POST checks
when: verb == "post_checks"
ansible.builtin.include_tasks: command_checks.yaml
loop: "{{ post_check_commands }}"
- name: Check VPRNs - name: Check VPRNs
when: verb == "check_base_ris" when: verb == "check_base_ris"
loop: "{{ pe_vprns }}" loop: "{{ pe_vprns }}"
......
...@@ -11,8 +11,55 @@ verbs: ...@@ -11,8 +11,55 @@ verbs:
- deploy_routing_instances # Deploy standard PE VPRNs - deploy_routing_instances # Deploy standard PE VPRNs
- update_sdp_mesh # Upadate SDP mesh on other Nokia PE routers with this promoted router - update_sdp_mesh # Upadate SDP mesh on other Nokia PE routers with this promoted router
- check_base_ris # Check BGP summary for base VPRNs - check_base_ris # Check BGP summary for base VPRNs
- pre_checks
- post_checks
lo_ipv4_address: "{{ subscription.router.router_lo_ipv4_address }}" lo_ipv4_address: "{{ subscription.router.router_lo_ipv4_address }}"
lo_ipv6_address: "{{ subscription.router.router_lo_ipv6_address }}" lo_ipv6_address: "{{ subscription.router.router_lo_ipv6_address }}"
router_tier: "{{ subscription.router.router_site.site_tier }}" router_tier: "{{ subscription.router.router_site.site_tier }}"
router_role: "{{ subscription.router.router_role }}" router_role: "{{ subscription.router.router_role }}"
post_check_commands:
- command: show router route-table summary | match ISIS
- command: show router isis interface | match '^[a-z]'
- command: show router isis adjacency | match '^[a-z]'
- command: show router mpls interface | match '^[a-z]'
- command: show router rsvp interface | match '^[a-z]'
- command: show router rsvp neighbor | match '^[1-9]'
- command: show router rsvp session | match "Up"
- command: show router pim interface | match "Up"
- command: show router pim neighbor | match '^[a-z|A-Z]'
- command: show router pim status | match '(State|RPF Table)'
- command: show router pim group | match '^[1-9]' | no-more
- command: show router route-table mcast-ipv4 summary
- command: show router route-table mcast-ipv6 summary
- command: show router bgp summary group "iGEANT"
- command: show router bgp summary group "iGEANT6"
- command: show router bgp summary group "iGEANT-P-ONLY"
- command: show router bgp summary group "iGEANT6-P-ONLY"
- command: show service sdp
- command: show router route-table 0.0.0.0/0
- command: show router route-table ::/0
- command: show router Base route-table summary
- command: show router 21320 route-table summary
- command: show cflowd status | match '(Timeout|Retrans)'
- command: show cflowd collector | match '^[0-9]'
- command: show router Base origin-validation rpki-session detail
- command: show router Base bgp routes 5.150.67.0/24 detail | match '(Network|Final|Community|Attri)'
- command: show router Base bgp routes community ext:4300:0 | count
- command: show router Base bgp routes community ext:4300:1 | count
pre_check_commands:
- command: show router route-table summary | match ISIS
- command: show router isis interface | match '^[a-z]'
- command: show router isis adjacency | match '^[a-z]'
- command: show router mpls interface | match '^[a-z]'
- command: show router rsvp interface | match '^[a-z]'
- command: show router rsvp neighbor | match '^[1-9]'
- command: show router rsvp session | match "Up"
- command: show router pim interface | match "Up"
- command: show router pim neighbor | match '^[a-z|A-Z]'
- command: show router pim status | match '(State|RPF Table)'
- command: show router pim group | match '^[1-9]' | no-more
- command: show router route-table mcast-ipv4 summary
- command: show router route-table mcast-ipv6 summary
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment