Skip to content

Commit

Permalink
MINOR: zrancid-auto-yana: Add extra rules for z-cisco-sb and z-huawei
Browse files Browse the repository at this point in the history
  • Loading branch information
julthomas committed Sep 27, 2024
1 parent 4c1dfb2 commit eee348b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/zrancid-auto-yana
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function get_rancid_type() {
*aruba\ jl*/*switch*) REPLY=z-arubaos-cx; return 0 ;;
*aruba*/*wlan*) REPLY=z-aruba-ap; return 0 ;;
*comware*/*) REPLY=z-cmw; return 0 ;;
*catalyst\ 1200\ series*/*cisco*) REPLY=z-cisco-sb; return 0 ;;
esac
case "${vendor,,}" in
routerboard.com) REPLY=routeros; return 0 ;;
Expand All @@ -163,10 +164,12 @@ function get_rancid_type() {
*ciscosb*) REPLY=z-cisco-sb; return 0 ;;
*cisco\ sg*) REPLY=z-cisco-sb; return 0 ;;
*cisco\ sf*) REPLY=z-cisco-sb; return 0 ;;
*cisco\ c1200*) REPLY=z-cisco-sb; return 0 ;;
*cisco*) REPLY=z-cisco-ios; return 0 ;;
*hpetherswitch*) REPLY=hp; return 0 ;;
*hpnetworking*) REPLY=hp; return 0 ;;
*hpswitch*) REPLY=hp; return 0 ;;
*huawei\ yunshan\ os*) REPLY=z-huawei; return 0 ;;
esac
case "${descr,,}" in
*aruba*) REPLY=hp; return 0 ;;
Expand All @@ -177,7 +180,7 @@ function get_rancid_type() {
hp\ j*) REPLY=hp; return 0 ;;
huawei\ switch*) REPLY=z-huawei; return 0 ;;
huawei\ versatile\ routing\ platform*) REPLY=z-huawei; return 0 ;;
huawei\ yunshan\ os) REPLY=z-huawei; return 0 ;;
huawei\ yunshan\ os*) REPLY=z-huawei; return 0 ;;
*planet\ *switch) REPLY=z-cisco-sb; return 0 ;;
*procurve*) REPLY=hp; return 0 ;;
esac
Expand Down

0 comments on commit eee348b

Please sign in to comment.