Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jsnapy seems to ignore when multiple XML sent in RPC-REPLY #340

Open
AlpineScrewdriver opened this issue May 17, 2019 · 0 comments
Open

Comments

@AlpineScrewdriver
Copy link

AlpineScrewdriver commented May 17, 2019

Description of Issue/Question

Looking to validate SRX session count from a "show security flow session summary"

The RPC responds with:
flow-session-information
and
flow-session-summary-information

But flow-session-information is empty, I need to process flow-session-summary-information

I've tried using xpath, sending a command and RPC with summary: True, but I only ever receive this in the snapshot:

Setup

I've tried multiple iterations but this is my latest effort

flow_session_count:
  - rpc: get-flow-session-information
  - args:
      summary: True
  - iterate:
      xpath: flow-session-summary-information
      id: active-unicast-sessions
      tests:
        - is-gt: active-unicast-sessions, 10000
          err: 'Session count less than 10k! ({{pre["active-unicast-sessions"]}})'
          info: 'Session count above 10k! ({{pre["active-unicast-sessions"]}})'

Steps to Reproduce Issue

Attempt to parse summary info from show security flow session summary

Versions Report

JSNAPy version: 1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant