Skip to content

Measure reboot start time by pinging DUT's vlan interface#694

Merged
lguohan merged 2 commits intosonic-net:masterfrom
stepanblyschak:fast_reboot_cp_down
Sep 6, 2018
Merged

Measure reboot start time by pinging DUT's vlan interface#694
lguohan merged 2 commits intosonic-net:masterfrom
stepanblyschak:fast_reboot_cp_down

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

A device may do some additional work after executing
"fast-reboot" in cli without CP/DP disruption

Signed-off-by: Stepan Blyschak stepanb@mellanox.com

Description of PR

Summary:
Fixes # (issue)

Type of change

  • [] Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

A device may do some additional work after executing
"fast-reboot" in cli without CP/DP disruption

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Copy link
Copy Markdown
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As comments


self.reboot_start = datetime.datetime.now()
self.log("Dut reboots: reboot start %s" % str(self.reboot_start))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to insert a check that the DUT data plane is still working.

Right after you found your control plane are rebooting, check that your DUT is able to send packets back and forth. And after that wait until DUT data plane is stopped working.

self.check_param('min_bgp_gr_timeout', 15, required = False)

# Default settings
self.ping_dut_pkts = 100
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to use lower value, like 10 or 20. We need higher values in the data plane tests because of requirements.

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
@lguohan lguohan merged commit c8647e2 into sonic-net:master Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants