Skip to content

TTP Group and Complience test "Bug" #125

Closed Answered by amyasnikov
aascedu asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @aascedu, dash has special meaning in jq, so it breaks variable names by default. You can leverage quotes to escape names with dashes.

 not jq.all('."line-vty"[] | select(.mode == "telnet" or .mode2 == "telnet").range', device.config)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by aascedu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants