# OpenGoss_Test **Repository Path**: uumty/opengoss_test ## Basic Information - **Project Name**: OpenGoss_Test - **Description**: 用于测试各种业务常用代码 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-17 - **Last Updated**: 2026-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Based on the code map, I can see this is a telecommunications/PON (Passive Optical Network) equipment management and testing toolkit. Let me create a comprehensive README for this project. # OpenGoss_Test #### 介绍 用于测试各种业务常用代码,主要应用于光网络通信设备的管理与测试,包括 PON 索引编解码、OLT 设备查询、服务端口提取等功能。 #### 软件架构 本项目是一个光网络通信设备的测试工具集,主要包含以下模块: - **PON 索引处理** (`pon_index.py`) - PON 端口索引的编码与解码 - **主功能模块** (`main.py`) - 生成设备相关字符串 - **服务端口提取** (`HW_service-port.py`) - 提取华为设备服务端口信息 - **OLT 域查询** (`FH_oltqinq-domain.py`) - 光纤家宽 OLT 设备域查询 - **批量处理脚本** (`auto.sh`) - 自动化批量处理任务 #### 安装教程 1. 确保 Python 3.x 已安装 2. 克隆本仓库到本地 3. 直接运行各 Python 模块即可 ```bash git clone https://gitee.com/uumty/open-goss_test.git cd open-goss_test ``` #### 使用说明 **PON 索引编解码** ```python # 编码:将 frame, slot, port 转换为 PON 索引 index = encode(frame=1, slot=2, port=3) # 解码:将 PON 索引转换回 frame, slot, port frame, slot, port = decode(index) ``` **生成设备字符串** ```python # 生成设备相关字符串 result = generate_string(seq, onu, o_id) ``` **提取服务端口** ```python # 从文件中提取服务端口信息 service_ports = extract_service_ports("service_ports.txt") ``` **批量处理** ```bash # 运行自动批处理脚本 ./auto.sh ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)