src/config/network.rs: move type definitions to src/api2/types.rs

This commit is contained in:
Dietmar Maurer
2020-04-21 17:25:05 +02:00
parent 7e02d08cd0
commit c357260d09
3 changed files with 90 additions and 89 deletions

View File

@ -6,6 +6,7 @@ use proxmox::api::{api, ApiMethod, Router, RpcEnvironment, Permission};
//use crate::api2::types::*;
use crate::config::network;
use crate::config::acl::{PRIV_SYS_AUDIT};
use crate::api2::types::Interface;
#[api(
input: {
@ -15,7 +16,7 @@ use crate::config::acl::{PRIV_SYS_AUDIT};
description: "List network devices (with config digest).",
type: Array,
items: {
type: network::Interface,
type: Interface,
},
},
access: {