I have no idea what TTP parser is, but you also didn't tell how that is relevant, so I'll ignore that.
What about something basic like: when: show_flash.bandwidth|int >= 50000 On Wed, 21 Apr 2021 at 20:30, Vikram S <[email protected]> wrote: > > Hi, > > I used TTP parser to parse the output of 'sh run int gi0/0' and below is > output. > > Say for example, i want to compare bandwidth value againt a number and check > if it higher/lower than a certain value, how do i write the syntax for that? > > > TASK [Display facts] > ok: [ROUTER] => { > "msg": [ > [ > { > "show_flash": { > "bandwidth": "50000", > "description": "ISP", > "interface": "GigabitEthernet0/0/2", > > Thanks, > Vikram > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/76c877da-318c-4b92-94ea-02ddf079a693n%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwMWv-6iMSzN8cBwjA2G84rDsmrVadTsSB325otpikg_vw%40mail.gmail.com.
