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
1
vote
1 answer
Ansible playbook ERROR! the role 'Juniper.junos' was not found in /home/
Hello im trying to run this playbook at with ansible and im getting this output every time
ERROR! the role 'Juniper.junos' was not found in…

pantelis athanasiou
- 11
- 2
1
vote
0 answers
Juniper ansible module fail on ansible 2.10
I want to create a playbook to get info and backup my Juniper Ex3400 switch. And i have faced some issue when followed the guide on internet. Here is my playbook and error. It' seems the juniper_junos_command cannot recognize, and all the required…

climba15092
- 11
- 2
1
vote
2 answers
Juniper NETCONF RPC - No data returned
I am trying to send a custom XML RPC to my Juniper VM. The command is the following:
netconf-console --host 192.168.1.100 --port 830 --user xxxx --password xxxx --rpc junos-get-interfaces.xml

Jok56
- 69
- 1
- 9
1
vote
0 answers
Net::SSH::Expect + JunOS doesn't return output when escaping double quotes
EDIT 1 : Removed the sentence : ", well first thing first the " have to be escaped such as \" , but" , my mistake this doesn't make sense.
EDIT 2 : Added content of $cmd
EDIT 3 : added intelligible code sample
I'm experiencing a problem when using…

Luc Larochelle
- 71
- 1
- 6
1
vote
1 answer
Using Actix Identity with Juniper GraphQL
I use Actix Identity with Cookie Policy to store user session and about to migrate from REST to GraphQL using Juniper.
It would be great to create a login endpoint in GraphQL by using actix identity.
Using Juniper in Actix, I've to move GraphQL…

SaltyAom
- 81
- 2
- 4
1
vote
2 answers
Python Paramiko SSH script that use specific IP source
I have currently written this script which works fine, but has a limitation,
I can't decide which source IP can open SSH with the server.
For routers with multiple interfaces it would be extremely useful.
I read that sock or channel could be used,…

Simonlotto
- 7
- 4
1
vote
1 answer
Paramiko with Juniper echos commands executed
When getting an o/p from Juniper using Paramiko, the output first shows the commands and then execute the commands. Below is the code and output
import paramiko
import getpass
password = getpass.getpass()
with open('ips.txt','r') as f:
ip…

Vishnu Reddy
- 13
- 3
1
vote
2 answers
Trying to count from 10 to the input value provided and columns provided in Python but not getting it. I basically want like 5 numbers on top etc
counter = 10
numbers = int(input("Enter a number between 10 and 99: "))
column = int(input("How many columns would you like? "))
for num in range(10, numbers):
for col in range(column):
counter += 1
print(num + 1, end= '…

NewPythonLearner
- 49
- 5
1
vote
1 answer
Regex including variable to match juniper srx output
New to programming with python as my first language.
I'm attempting to create a regex that would match 'lo0.0' or any other interface that presents in that position from the string below. I need the ip address '192.168.50.5' to be input as a…

Chromacy
- 21
- 4
1
vote
0 answers
Python/openpyxl script to detect cell value and print output from cells next to it
I am having issues creating a script using openpyxl - in short what this script is meant to do is read an excel sheets cell value and print CLI commands for Juniper CLI.
My problem is i want to automate the process of the script finding specific…

zkwert
- 11
- 2
1
vote
0 answers
How to correctly construct a SOAP request to use in __SoapCall?
this is how my request needs to look in XML format:

f7n
- 1,476
- 3
- 22
- 42
1
vote
1 answer
Specific Targeting of Hosts Based on File Name
I am using ansible to send configuration ".set" files to a Junos OS devices using the "junos_install_config" module. I want to send specific files to specific hosts based on the names.
eg. I want to send the file "vMX1.set" to host vMX1, file…

Maurio
- 172
- 3
- 13
1
vote
1 answer
How do I add a field to a GraphQL struct of type GraphQL Union? (Rust enums and Juniper)
I copied the straightforward GraphQL Union example from the Juniper GitBook.
use juniper::{graphql_union, GraphQLObject};
// I copied the below from the Juniper Gitbook
#[derive(GraphQLObject)]
struct Human {
id: String,
home_planet:…

Adam
- 482
- 1
- 4
- 12
1
vote
0 answers
How to convert Juniper config backup file
We have a system that keeps a backup of the configuration of Juniper's devices
We need to load this file and transform it into a more readable format, such as XML or Json
Is it possible to do it with Python?
We found a way to do it in Ruby, but we…

SOSkr
- 21
- 6
1
vote
0 answers
Find and use first match during a loop with when conditions in Ansible
So I'm trying to configure a interface on a Juniper ex2300 but I only want to configure the first free interface. I know that when you register values all values get registered which frustrating as I don't need the skipped values.
But I want to…

Charles Shum
- 63
- 6