Juniper Tech Library says it should look like this:

<rpc>
   <load-configuration>
 
      <!-- replace a pattern  globally  -->
      <configuration replace-pattern="pattern1" with="pattern2" [upto="n"]>
      </configuration>
   </load-configuration>

</rpc>


But I have no idea how to format this kind of rpc request to junos_rc 
module:
The problem is, I think, that there are one tag nested in onother- 
<load-configuration> and <configurationa>.
Itried this way but It gives mi an error:


     - name: replace pattern 
       junos_rpc: 
          rpc: load-configuration configuration
           attrs:
             replace-pattern="pattern1"
             with="pattern2
 
I tried also this way and it gives me "OK" response but it doesn't change 
anything in configuration:

     - name: replace pattern 
       junos_rpc: 
          rpc: load-configuration
           attrs:
             replace-pattern="pattern1"
             with="pattern2

Any other idea?
Thanks in advance,
Michal

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bbb471f6-194c-479b-b8c5-4f1a3576b81e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to