adt-apjc / YAP

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Propose device type in ssh-cli endpoint #191

Closed ueasaksupa closed 9 months ago

ueasaksupa commented 9 months ago

to add device type in

export type SSHCliEndpointConfig = {
   hostname: string;
   port: string;
   username: string;
   password: string;
   deviceType: "linux" | "cisco_ios" | "cisco_iosxr";
};
ueasaksupa commented 9 months ago

this will make prompt much easier to expect and we can append term len 0 to the first cmd when device-type is cisco router

marumer commented 9 months ago

I am ok with this, but what do you think if we also add an alternative string option for a custom prompt as regexp