def METHOD_NAME(
    self,
    pri_prompt_terminator: str = "",
    alt_prompt_terminator: str = "",
    delay_factor: float = 1.0,
    pattern: Optional[str] = None,
) -> str:
    """Ciena can use '>', '$', '#' for prompt terminator depending on the device."""
    prompt = self.find_prompt(delay_factor=delay_factor)
    pattern = rf"^.+{self.prompt_pattern}$"
    if not re.search(pattern, prompt):
        raise ValueError(f"Router prompt not found: {repr(prompt)}")
    # Strip off trailing terminator
    self.base_prompt = prompt[:-1]
    return self.base_prompt