Chaning promt (comms_prompt_pattern) per command or config_sets #130
-
Hi everyone, Is there any way to change the prompt to match certain commands or config line? I am using
The problem is that in my configuration, the prompt can be as long as 72 characters. Hence the above pattern fails to match. I am wondering if creating a PR is better, or have an option to specify a custom prompt per command or config would be more useful. Appreciate your thought or suggestion on this topic. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I assume this should have been in scrapli_community since it doesn't seem netconf related? but maybe im wrong there? if this is something that would be common for all huawei vrp devices -- as in 72 is the char limit for many/most huawei vrp devices -- then this would be something that would be good to get merged into scrapli_community, so yes a pr would be welcomed. if it is a more one-off type of thing where you have a sort of non-standard then you can modify this behavior on your own (without modifying the source code) similar to:
|
Beta Was this translation helpful? Give feedback.
-
My apologies. I intended to post under the scrapli as a general option which can be applied across drivers. It is indeed an one-off case; but I am sure it could resurface again. But I think this tends to apply more specifically to Huawei. I am considering creating an PR for the driver. Thank you for the suggestions and the prompt reply. |
Beta Was this translation helpful? Give feedback.
I assume this should have been in scrapli_community since it doesn't seem netconf related? but maybe im wrong there?
if this is something that would be common for all huawei vrp devices -- as in 72 is the char limit for many/most huawei vrp devices -- then this would be something that would be good to get merged into scrapli_community, so yes a pr would be welcomed.
if it is a more one-off type of thing where you have a sort of non-standard then you can modify this behavior on your own (without modifying the source code) similar to: