So I tested out the configuration from my MAC.
I had to install rust by using this command: curl https://sh.rustup.rs -sSf | sh
- This also installs cargo which is used to run the script.
Once this was installed, I then had to install the JCC-CLI by using this command: cargo install jcc-cli
Once created, you then vi/cat a file with the configuration you want, I chose this:
vpn-a
instance-type vrf;
interface ge-0/0/0.0;
vrf-target target:65412:100;
routing-options
auto-export;
}
protocols
bgp
group ce-a
peer-as 65000;
as-override;
neighbor 10.0.21.2;
And when running the JCC-CLI file against the script, this is the outcome:
➜ ~ jcc-cli --file juniper_test.txt
set vpn-a instance-type vrf
set vpn-a interface ge-0/0/0.0
set vpn-a vrf-target target:65412:100
set vpn-a routing-options auto-export
set vpn-a protocols bgp group ce-a peer-as 65000
set vpn-a protocols bgp group ce-a as-override
set vpn-a protocols bgp group ce-a neighbor 10.0.21.2
HTH,
Ethan
------------------------------
Ethan Jackson
------------------------------
Original Message:
Sent: 09-13-2023 02:47
From: Ulf
Subject: how to convert juniper show configuration command output to show configuration display set
Hi,
you can always use any (similar) Juniper device and do:
configure
load override terminal
(paste your config)
<Crtl-D>
show | display set
rollback
exit
And if you don't have a device at hand, you can always use a vSRX.
Regards
Ulf
Original Message:
Sent: 09-12-2023 05:49
From: HAFIZ MUAHMMAD HAROON NAZIR
Subject: how to convert juniper show configuration command output to show configuration display set
is there any way we can convert show configuration output to show configuration | display set
------------------------------
HAFIZ MUAHMMAD HAROON NAZIR
------------------------------