For software development issues related to Juniper hardware. Networking and configuration questions should be asked on https://networkengineering.stackexchange.com/
Questions tagged [juniper]
108 questions
25
votes
4 answers
Replacing a text with \n in it, with a real \n output
I am trying to get a config from a juniper router and I have the following problem:
After setting this
stdin, stdout, stderr = client1.exec_command('show configuration interfaces %s' % SID)
CONFIG = stdout.read()
print CONFIG
It brings me…

agusbava
- 273
- 1
- 3
- 7
8
votes
1 answer
Find out what the realm is for a Juniper Connect VPN session?
I'm currently VPN using a web interface through Juniper that asks for username and password. I want to programmatically connect but I have to use nclauncher.exe, which requires me to enter a "realm".
How do I find out which realm I'm logging into?

WindowsMaker
- 3,132
- 7
- 29
- 46
8
votes
2 answers
How does one use `sqlx` with `juniper` subscriptions in Rust?
Background:
I am having trouble integrating sqlx with juniper subscriptions.
I am getting a Pin> + 'e + Send>> from sqlx::query::QueryAs::fetch().
juniper needs subscriptions to be returned as…

ehegnes
- 81
- 1
5
votes
2 answers
assertThrows multiple exceptions
Can anyone tell me how to use assertThrows with several exceptions?
for ex, here is a class:
protected void checkViolation(Set> vViolations) throws FunctionalException {
if (!vViolations.isEmpty()) {
…

Xbreizh
- 333
- 4
- 19
3
votes
0 answers
Actix web - sqlx - juniper: I got 'Tried to resolve async field users on type Some("Query") with a sync resolver'
I'm trying to use Actix-SQLx-Juniper in my Rust project. I've followed and combined any tutorial that I've found, it successfully compiled and run. But when I try to post a query, I got this error in terminal:
thread 'actix-web' panicked at 'Tried…
3
votes
1 answer
Providing input/subcommands to a command (cli) executed with SSH.NET SshClient.RunCommand
I created a program using Renci SSH.NET library. Its sending all the commands and reading the result normally. However, when I send the command below:
client.RunCommand("cli");
The program hangs on this line indefinitely.
Any explanation of what is…

ZalimCode
- 43
- 5
2
votes
0 answers
Juniper + golang: I need to save interface configuration and I apply it again
I'm using github.com/Juniper/go-netconf/netconf library.
Here is my RPC to get interface config:
rpcGetInterfaceConfig =…

Евгений Горохов
- 21
- 2
2
votes
1 answer
Parsing JSON output from Juniper switch using Ansible
I have this JSON output from Juniper switch where I need to get the remote system name associated with lldp_local_parent_interface_name having the value ae0.
So, I only know the value ae0 and I need to get the remote system name A_B_C_D in order to…

DarkOne00X
- 23
- 3
2
votes
1 answer
Juniper Ansible Json Formatting
I'm trying to output a retrieved Juniper json config file using to_nice_json. I can't use a post playbook tool such as "json.tool" but I'd rather pull the config and save it in nice_json format.
Below is my task that creates a serialized json…

chester
- 21
- 1
2
votes
0 answers
JunOS pyEz - Using 'serial' mode with Device class throws exceptions
I have been trying to use JunOS pyEZ to provision SRX which needs serial connection for initial configuration. Using the below mentioned code throws I/O exception:
from jnpr.junos import Device
from jnpr.junos.utils.config import Config
import…

shivintwrk
- 21
- 1
2
votes
1 answer
PyEZ: RPC: Get route info for specific grandchild element
I want to get wia RPC info like this:
> show route output interface ae40.4181 | display xml rpc

brownian
- 435
- 3
- 13
1
vote
1 answer
add router and interface name matches from regex to dict with no duplicates
I have a RegEx that extracts Juniper router and interface names from RANCID configs. I want to properly utilize a dict, set or list (doesn't honestly matter, I display a dict in my example) that will store the router names from my example text (the…

agent dale cooper
- 13
- 3
1
vote
0 answers
Sending polars Dataframe via juniper GraphQL
I am trying to send the Polars dataframe over juniper GraphQL, but #[juniper::graphql_object] is complaining about trail bound
the trait bound `Result, FieldError>: IntoResolvable<'_, __S, _,…

921kiyo
- 584
- 4
- 14
1
vote
1 answer
Using textFSM to parse multiple show commands
I'm trying to use textFSM to compile some Juniper "show" command outputs and get specific fields from them and finally printing collected info in one run.
This is my code:
import textfsm
import getpass
from netmiko import ConnectHandler
from…

Adam Freemotion
- 43
- 5
1
vote
0 answers
I'm having RpcTimeoutError commit-configuration
I am using juniper module for Ansible, however I'm having the issue below. Do you have any idea ?
fatal: [172.31.30.158]: FAILED! => {"changed": false, "msg": "Failure checking the configuraton: RpcTimeoutError(host: 172.31.30.158, cmd:…

signalz
- 11
- 1