From 50bec85f9841f2440ab77e9b42dfdcdeaf28d4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 4 Sep 2013 12:36:46 +0200 Subject: [PATCH] cli: allow editing team and team-port settings in interactive editor --- cli/src/settings.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cli/src/settings.c b/cli/src/settings.c index 29e823d2bb..5e0a6a30c8 100644 --- a/cli/src/settings.c +++ b/cli/src/settings.c @@ -4316,6 +4316,28 @@ nmc_properties_init (void) NULL, NULL); + /* Add editable properties for NM_SETTING_TEAM_SETTING_NAME */ + nmc_add_prop_funcs (GLUE (TEAM, INTERFACE_NAME), + nmc_property_team_get_interface_name, + nmc_property_set_ifname, + NULL, + NULL, + NULL); + nmc_add_prop_funcs (GLUE (TEAM, CONFIG), + nmc_property_team_get_config, + nmc_property_set_string, + NULL, + NULL, + NULL); + + /* Add editable properties for NM_SETTING_TEAM_PORT_SETTING_NAME */ + nmc_add_prop_funcs (GLUE (TEAM_PORT, CONFIG), + nmc_property_team_port_get_config, + nmc_property_set_string, + NULL, + NULL, + NULL); + /* Add editable properties for NM_SETTING_VLAN_SETTING_NAME */ nmc_add_prop_funcs (GLUE (VLAN, INTERFACE_NAME), nmc_property_vlan_get_interface_name,