Junos Classic vs EVO #1972
Replies: 5 comments 2 replies
-
Since the template chosen via the index file is based on platform and OS type, we would need to handle any differences between Classic and Evolved in the same template. 📝 Note: If this helps and is an answer, please mark it as such. Thank you!
For now I'm only aware of the single NOS being "junos".
This is the ideal part in that since it normally "works fine on both Classic and EVO", we (community) can do our best to make the template(s) support both.
👍 Agree.
I don't have access to any JunOS images presently (I need to go look at jLabs and/or talk to Juniper), but the JunOS ... snipped ...
To somewhat reiterate from above, there's a single NOS Where we can it would likely be smart to separate the EVO-specific rules.
|
Beta Was this translation helpful? Give feedback.
-
If there needs to be a new OS added, that can be done. We prefer to align with what works with Netmiko though. The use of States is a good way to handle widely different output, such as Cisco IOS show mac address command (look at the template) |
Beta Was this translation helpful? Give feedback.
-
Oh thanks for the link. I was looking at other Junos templates to see if
something had been done to handle multiple OS versions. Adding a new OS can
be a bit burdensome. Most of the juniper_junos templates overlap with no
issues and having to replicate them across two versions would be confusing
and a pain I think.
Michael also helped me understand that templates can take comments too. I
can make some notes within the template to make it clear that there appear
to be two sets of code for two versions. I will mock something up and paste
it here when I get a chance in the next few days to get some feedback on
the direction I am taking.
Thanks!
…On Mon, Jan 13, 2025 at 1:07 PM Michael Bear ***@***.***> wrote:
The use of States is a good way to handle widely different output, such as
Cisco IOS show mac address command (look at the template)
💯%
I hadn't update my response above, but in a direct message I mentioned to
Joseph that States would be another possibility.
Glad we agree, hehe.
—
Reply to this email directly, view it on GitHub
<#1972 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AILVUEXRZ7DULHI6SOV6N432KQFGZAVCNFSM6AAAAABVAIJKFCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBSGM3TMMA>
.
You are receiving this because you authored the thread.Message ID:
<networktocode/ntc-templates/repo-discussions/1972/comments/11823760@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
By "link" I meant a suggestion to the Cisco template. Sorry that read weird
when I looked over it again. :D
On Mon, Jan 13, 2025 at 1:36 PM Joseph Nicholson ***@***.***>
wrote:
… Oh thanks for the link. I was looking at other Junos templates to see if
something had been done to handle multiple OS versions. Adding a new OS can
be a bit burdensome. Most of the juniper_junos templates overlap with no
issues and having to replicate them across two versions would be confusing
and a pain I think.
Michael also helped me understand that templates can take comments too. I
can make some notes within the template to make it clear that there appear
to be two sets of code for two versions. I will mock something up and paste
it here when I get a chance in the next few days to get some feedback on
the direction I am taking.
Thanks!
On Mon, Jan 13, 2025 at 1:07 PM Michael Bear ***@***.***>
wrote:
> The use of States is a good way to handle widely different output, such
> as Cisco IOS show mac address command (look at the template)
>
> 💯%
> I hadn't update my response above, but in a direct message I mentioned to
> Joseph that States would be another possibility.
> Glad we agree, hehe.
>
> —
> Reply to this email directly, view it on GitHub
> <#1972 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AILVUEXRZ7DULHI6SOV6N432KQFGZAVCNFSM6AAAAABVAIJKFCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBSGM3TMMA>
> .
> You are receiving this because you authored the thread.Message ID:
> <networktocode/ntc-templates/repo-discussions/1972/comments/11823760@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
-
I quickly put this together using the nornir site. When I feed it actual router output for EVO or Classic is parses as expected. I see how to make multiple test files as well to make sure each gets tested properly. Thanks guys I think you got my questions answered.
|
Beta Was this translation helpful? Give feedback.
-
Is there any guidance on how to handle templates for the two flavors of JUNOS, Classic and EVO? When using the templates there is only
juniper_junos
as an option. This works fine on both Classic and EVO for the most part. Both versions still run the same copy of Junos (I have verified this with Juniper developers). Most of the command output is the same or has slight differences, but there are some commands that have vastly different output.The difference between Classic and EVO is the OS underneath Junos.
Juniper Linux Distribution
.Some commands pull data out of the OS underneath. One such command is
show system processes brief
. This uses data from thetop
command in the OS to display CPU and Memory usage info. Due to the differing OSes, the output is pretty unique to each flavor of Junos.Classic Output:
EVO Output (EVO displays all RE's and FPC's at the same time):
As we can see here the output is different enough that someone would naturally gravitate towards making separate templates for each. I do believe it is possible to make one template.
Most of the other Junos based commands are nearly identical across versions. If a new
juniper_junos_evo
option were added, templates would need to be duplicated etc.My question here is
How do we handle templates for Classic vs EVO
?Beta Was this translation helpful? Give feedback.
All reactions