Hello Members,
I am using the junos_modules that come with AWX (like junos_commands) to
get configuration of a juniper device - this works fine. I get the output of the configuration
by using results.stdout_lines. The device has a large configuration. I just want to get results
for a certain part of the configuration: “protocols bgp group JuniperMesh”
This is easy from the command line using a special container with the Juniper.junos role configured, etc.
I am trying to parse the output I get for the “show configuration” for the values noted above.
Nothing works - cannot use regex_search, when, contains, etc I am unable to narrow the results
with those methods using a playbook in awx. The bgp output I want is only about 12 lines.
Any suggestions on how to narrow my results from the results.stdout (or stdout_lines)
Thanks for this great resource.
ewholz