Skip to content

BGP GR helper mode test plan

Oleksandr Ivantsiv edited this page Jul 11, 2017 · 7 revisions

[DRAFT, UNDER DEVELOPMENT]

Overview

The purpose is to test a functionality of BGP GR mode on the SONIC switch DUT, closely resembling production environment. The test assumes all necessary configuration is already pre-configured on the SONIC switch before test runs.

Scope

The test is targeting a running SONIC system with fully functioning configuration. The purpose of the test is not to test specific API, but functional testing of BGP GR helper mode on SONIC system, making sure that traffic flows correctly, according to BGP routes advertised by BGP peers of SONIC switch.

Testbed

The test will run on the following testbeds:

  • t1

Setup configuration

Templates for generating Arista VM configuration

There will be two j2 template files for Arista VM configuration: bgp_gr_enable.j2, bgp_gr_disable.j2. They will be used by Ansible playbook to generate Arista VM configuration file and apply it on corresponding VM.

Ansible scripts to setup and run test

bgp_gr_helper.yml

bgp_gr_helper.yml when run with tag "bgp_gr_helper" will do the following:

  1. Generate Arista VM configuration file and apply them on corresponding VM.
  2. Run test.
  3. Apply default configuration on VMs.

BGP GR helper test consists of a number of subtests, and each of them will include the following steps:

  1. Run lognanalyzer 'init' phase
  2. Run BGP GR helper Sub Test
  3. Run loganalyzer 'analyze' phase

PTF Test

To run traffic FIB PTF test will be reused.

Test cases

Each test case will be additionally validated by the loganalizer utility.

Test case #1 - BGP GR helper mode.

Test objective

Verify that traffic run without changes during neighbor graceful restart.

Test steps

  • Randomly choose VM for the test.
  • Set BGP GR timer on VM (timer should be bigger than time required for VM reboot).
  • Enable BGP GR on VM.
  • Reboot VM.
  • Run PTF FIB test while VM is rebooting. Verify that traffic still goes through the interface connected to the neighbor (FIB test should pass).
  • Verify that BGP session with the VM established.
  • Set default BGP GR configuration on the VM.

Other possible tests

TODO

Open Questions

Clone this wiki locally