use failure::*; use serde_json::{json, Value}; use proxmox::api::{ApiHandler, ApiMethod, Router, RpcEnvironment}; use proxmox::api::schema::ObjectSchema; use crate::api2::types::*; fn get_network_config( _param: Value, _info: &ApiMethod, _rpcenv: &mut dyn RpcEnvironment, ) -> Result { Ok(json!({})) } pub const ROUTER: Router = Router::new() .get( &ApiMethod::new( &ApiHandler::Sync(&get_network_config), &ObjectSchema::new( "Read network configuration.", &[ ("node", false, &NODE_SCHEMA) ], ) ) );