nmstate 2.2.60

Library for networking management in a declarative manner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: Apache-2.0

use super::super::nm_dbus::NmSettingVrf;
use crate::VrfConfig;

impl From<&VrfConfig> for NmSettingVrf {
    fn from(config: &VrfConfig) -> Self {
        let mut settings = NmSettingVrf::default();
        settings.table = config.table_id;
        settings
    }
}