Add aethra_atosnt show ip routemap work#2295
Add aethra_atosnt show ip routemap work#2295ppetilli wants to merge 5 commits intonetworktocode:masterfrom
Conversation
| # | ||
| Template, Hostname, Platform, Command | ||
|
|
||
| aethra_atosnt_show_ip_routemap_work.textfsm, .*, aethra_atosnt, sh[[ow]] ip routemap work |
There was a problem hiding this comment.
@ppetilli
Do the words ip, routemap, and work need to be completely typed out?
If there's a shorthand that also works we could account for that too (like is done for show), but only if it is a supported CLI syntax.
(Edit: I didn't find an example in the atosnt manual.)
First I've heard of Aethra. It doesn't look like Netmiko has details on Aethra equipment, but Scrapli does.
There was a problem hiding this comment.
Indeed commands need to be typed out completely. even show (i will correct the code)
The router I tested this on is a TMC-R3305 (from telco systems: https://www.telco.com/wp-content/uploads/2021/03/TMC-R3305_Datasheet.pdf). This device runs ATOSNT operating system from Aethra. (as far as i could find).
Match the white space in the List of Maps line for future proofing.
- Add an Error directive to the Start state - Match all the other line patterns in the Start state (before the Maps state transition)
…show_ip_routemap_work and added a deny test
| Empty list | ||
|
|
||
| LIST OF CLASSIFIERS | ||
| adver_subs |
There was a problem hiding this comment.
@ppetilli
Could there be an instance where the classifier name is something other than adver_subs?
There was a problem hiding this comment.
Hi @mjbear,
You were right to question this. I verified it directly on a device and confirmed that the classifier name can be up to 16 characters.
add ip routemap CLASSIFIER ?
add command parameters:
classifier name [Any value (max 16 chars)]
I’ve updated the code accordingly to align with this behavior.
Br,
Pieter
There was a problem hiding this comment.
@ppetilli
On line 14 (in the Start state) of the textfsm template, is a single classifier adver_subs.
If there's ever a different classifier name (if it's possible) then the template is not likely to match the classifier (regarding line 10 of this raw file).
I'd suggest another classifier name be added to the device configuration and update the corresponding raw output file. Thoughts?
(I don't have Aethra atosnt equipment, so I could be mistaken.)
adding an additional vendor and os version (aethra atosnt) with a first command "show ip routemap work"