Actions

Difference between revisions of "RANCID for Infinera Coriant Groove"

From falz.net

 
Line 1: Line 1:
Hacked in support for Coriant G30 groove for RANCID. If you're instead running Oxidized instead of rancid, [https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/coriantgroove.rb it supports this natively].
+
Hacked in support for Coriant G30 groove for RANCID. If you're instead running Oxidized instead of RANCID, [https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/coriantgroove.rb it supports this natively].
 +
 
 +
 
 +
This has come up on the [https://shrubbery.net/mailman/listinfo/rancid-discuss rancid-discuss] list a few times:
  
This has come up on the [https://shrubbery.net/mailman/listinfo/rancid-discuss rancid-discuss] list a few times
 
 
* [https://shrubbery.net/pipermail/rancid-discuss/2017-December/010013.html Coriant Groove platform support] (2018)
 
* [https://shrubbery.net/pipermail/rancid-discuss/2017-December/010013.html Coriant Groove platform support] (2018)
 
* [https://shrubbery.net/pipermail/rancid-discuss/2023-January/011262.html Support for Coriant Groove - has been discussed on-list before] (2023) - me asking for others' code. Didn't hear back, hence my hacks below.
 
* [https://shrubbery.net/pipermail/rancid-discuss/2023-January/011262.html Support for Coriant Groove - has been discussed on-list before] (2023) - me asking for others' code. Didn't hear back, hence my hacks below.
Line 8: Line 10:
  
 
===New Files===
 
===New Files===
Place files in appropriate locations  
+
Place files in appropriate locations:
  
 
* [https://falz.net/static/coriant.pm coriant.pm] - Based on '''wavesvros.pm''' - goes in '''lib''' with '''ios.pm''' and whatnot
 
* [https://falz.net/static/coriant.pm coriant.pm] - Based on '''wavesvros.pm''' - goes in '''lib''' with '''ios.pm''' and whatnot

Latest revision as of 13:40, 10 July 2023

Hacked in support for Coriant G30 groove for RANCID. If you're instead running Oxidized instead of RANCID, it supports this natively.


This has come up on the rancid-discuss list a few times:


New Files

Place files in appropriate locations:

  • coriant.pm - Based on wavesvros.pm - goes in lib with ios.pm and whatnot
  • corlogin - Based on hlogin - goes in bin with clogin, rancid-run, so on


Modifications

Modifications to rancid.types.conf

coriant;script;rancid -t coriant
coriant;login;corlogin
coriant;module;coriant
coriant;inloop;coriant::inloop
coriant;command;coriant::GenericCmd;set -f cli-config cli-columns 4000
# 'show shelf' has a varying temp in it, omit for now
#coriant;command;coriant::GenericCmd;show shelf
coriant;command;coriant::GenericCmd;show inventory
coriant;command;coriant::GenericCmd;show softwareload
coriant;command;coriant::GenericCmd;show alarm
coriant;command;coriant::WriteTerm;show config | display commands


Issues

  • Displaying the entire config this way takes a long time if pmstats are enabled (which they should be!). Could consider splitting up show config to a ton of different commands to avoid this.