Skip to content

[Bug]: REBOOT_TYPE_SUPERVISOR "cause" regex is wrong #15444

@Javier-Tan

Description

@Javier-Tan

Issue Description

REBOOT_TYPE_SUPERVISOR "cause" field has unexpected regex characters ^ and $, causing subsequent functions to error

Results you see

E.g.
Output of show reboot-cause on supervisor reboot: User issued 'reboot from Supervisor' command ... results in get_reboot_cause output of REBOOT_TYPE_UNKNOWN, when it should be REBOOT_TYPE_SUPERVISOR which causes test failures.

Results you expected to see

Accurate reflection of REBOOT_TYPE_SUPERVISOR

Is it platform specific

generic

Relevant log output

N/A

Output of show version

Version agnostic

Attach files (if any)

N/A

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions