Skip to main content

Greetings,

I am running into a problem trying to simplify Golden Template Configuration in Golden Engineering Studio (GES).

I am unable to get the Golden Template Configuration in GES to re-iterate through all parsed line vtys (line vty 0 4, line vty 5 15, etc.) and validate children configuration. I was hoping to not have to hard-set in my template configuration the expected line vtys, I want that to be dynamic. My only concern is that each line vty has “transport input ssh” configured, for example.

Is that possible?

 

I have tried using the following Configuration Parameter in my Golden Template Configuration:

Name: Line_VTY

Value:

line vty $line_vty_start $line_vty_end

 transport input ssh

 

And mapped the respective vars with my parsers:

$line_vty_start → $vty_start

$line_vty_end → $vty_end 

 

Alternatively, configured the following as my Golden Template Configuration (pretty much the same, but not using Configuration Parameter):
 

line vty $vty_start $vty_end

 transport input ssh

 

My Parser for the disovery is the following:

 

$vty_config

Start: vty line

end: !

Var: mregex:$vty_config]:(.+)

 

$vty_config parsed data:

line vty 0 4

 transport input ssh

… omitted

line vty 5 15

 transport input ssh

… omitted

 

In addition, I have a Paragraph Parser:

vars: $vty_start, $vty_end, $transport_line, $transport_input_type

LineID: regexy$vty_start, $vty_end]:^line vty (\d+) (\d+)

VarLine: regex($transport_line, $transport_input_type]:^ (transport input (.+))

 

$vty_start $vty_end $transport_line $transport_input_type
0 4 transport input ssh ssh
5 15 transport input none none

 

In GES Disovery/Browser > Parsers, I have added all vars mentioned above. $vty_config is set to Target Config Parser.

 

Thank you very much for your help on this matter!

Be the first to reply!

Reply