ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.8k stars 925 forks source link

bad file type for MLNXOS #3251

Open jloms opened 2 months ago

jloms commented 2 months ago

For MLNXOS class (mellanox whith Onyx OS), the config file contains ASCII but the linux type is binary. For git output it is not pretty good. I missed something in the config file ?

robertcheramy commented 2 months ago

mlnxos.rb is somewhat ugly, as it codes \e as binary char in the source code. This must be addressed by someone having access to the hardware. When I have finished my work on device simulation, I may help without access to the hardware.

jlo-lirmm commented 2 months ago

Thanks for the idea .... on the config file in oxidized stange char correspond to pager prompt Adding cmd 'terminal length 999' in model/mlnxos.rb solved the issue.

dtsname commented 1 month ago

have a similar issue, who can give an advice what should I fix in mlnxos.rb? some unprinted codes in config output needs to be filtered. interface ethernet 1/8 switchport trunk allowed-vlan add 100-101 interface ethernet 1/8 switchport trunk allowed-vlan add 150 interface ethernet 1/8 switchport trunk allowed-vlan remove 1 interface ethernet 1/9 switchport trunk allowed-vlan add 100-101 interface ethernet 1/9 switchport trunk allowed-vlan add 150 interface ethernet 1/9 switchport trunk allowed-vlan remove 1 interface ethernet 1/10 switchport trunk allowed-vlan add 100-101 ������������ interface ethernet 1/10 switchport trunk allowed-vlan add 150 interface ethernet 1/10 switchport trunk allowed-vlan remove 1 interface ethernet 1/11 switchport trunk allowed-vlan add 100-101 interface ethernet 1/11 switchport trunk allowed-vlan add 150 interface ethernet 1/11 switchport trunk allowed-vlan remove 1 interface ethernet 1/12 switchport trunk allowed-vlan add 100-101 interface ethernet 1/12 switchport trunk allowed-vlan add 150 interface ethernet 1/12 switchport trunk allowed-vlan remove 1 interface ethernet 1/13 switchport trunk allowed-vlan add 100-101