Crates.io | cmdb-ip-mapping |
lib.rs | cmdb-ip-mapping |
version | 0.6.4 |
source | src |
created_at | 2021-04-13 02:50:37.533887 |
updated_at | 2021-08-24 06:31:11.392126 |
description | Get appuk by ip from cmdb in rlink task. |
homepage | |
repository | https://github.com/yuanyinyan/cmdb-ip-mapping.git |
max_upload_size | |
id | 382661 |
size | 24,904 |
Depend on rlink. Get appuk by ip from cmdb in rlink task.
[dependencies]
cmdb-ip-mapping = "0.1"
let ip = "10.99.5.49";
let ip_mapping_url = "http://ipappukmapping.17usoft.com/mapping/all";
load_ip_mapping_task(ip_mapping_url);
let option = get_ip_mapping_config(ip);
assert!(option.is_some());
assert!(option.unwrap().app_uk.eq("dssteamyyjk.java.ip.appuk.mapping"))