[#2] 增加ruijie支持,注册接口增加vendor类型

This commit is contained in:
2025-12-03 14:31:39 +08:00
parent 79afe4fbfc
commit 475bce46f6
31 changed files with 1227 additions and 39 deletions

View File

@@ -0,0 +1,26 @@
curl -s -X POST -H "Content-Type: application/json" -H "X-API-Token: changeme" -d '{
"name": "h3c-live-1",
"host": "127.0.0.1",
"port": 8830,
"username": "netconf_user",
"password": "NASPLab123!",
"enabled": true,
"supports_xpath": false,
"scrape_interval_seconds": null,
"vendor": "h3c"
}' http://127.0.0.1:19100/api/v1/devices
curl -s -X POST -H "Content-Type: application/json" -H "X-API-Token: changeme" -d '{
"name": "ruijie-live-1",
"host": "127.0.0.1",
"port": 9830,
"username": "ruijie1-admin",
"password": "1qw2#ER$_ruijie",
"enabled": true,
"supports_xpath": false,
"vendor": " Ruijie "
}' http://127.0.0.1:19100/api/v1/devices

View File

@@ -1,2 +1,6 @@
# 本地8830 转发到h3c交换机830端口,经过c1服务器
ssh -L 8830:192.168.19.11:830 yuyr@c1
# 本地9830 转发到锐捷交换机830端口,经过c1服务器
ssh -L 8830:192.168.19.11:830 \
-L 9830:192.168.19.152:830 \
yuyr@c1