nmstate 2.2.22

Library for networking management in a declarative manner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 = Some(config.table_id);
        settings
    }
}