secgateway/Platform/user/configm/config-test
zhanglianghy a72f0cefd6 MOD aaa-12 解决rpc server重启后,rpc client无法连接的问题以及brconfig对vlan桥检查错误的问题
SOL   解决rpc server重启后,rpc client无法连接的问题以及brconfig对vlan桥检查错误的问题
修改人:zhangliang
检视人:zhangliang
2019-08-20 14:38:48 +08:00
..
ReadMe.txt MOD aaa-12 优化测试代码 2019-07-11 18:32:22 +08:00
configtest.c MOD aaa-12 解决rpc server重启后,rpc client无法连接的问题以及brconfig对vlan桥检查错误的问题 2019-08-20 14:38:48 +08:00

ReadMe.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

配置测试步骤:
1、在configmtest-linux.exe或者configmtest-arm64.exe的目录下面创建文本文档文本文档名字为config id的16进制形式例如ip配置的文件名为0x0000000100000001
2、在文档中输入需要测试的json字符串例如{"config_type":3,"ifname":"ens3","family":2,"ipaddr":"192.168.12.12","prefixlen":24};每一行为一条完整配置,支持多个配置
3、启动configm-linux.exe或者configm-arm64.ext
4、启动测试进程参数名为创建的文件名例如./configmtest-linux.exe 0x0000000100000001查看结果打印如果成功会有打印信息例如
    config id0x100000001
    configure: {"config_type":5}
    call config type retturn:OK,result:[{"config_type":4,"ifname":"lo","family":2,"ipaddr":"127.0.0.1","prefixlen":8},{"config_type":4,"ifname":"ens3","family":2,"ipaddr":"172.28.72.52","prefixlen":24}]