cli: allow TAB-completion for tun.mode in nmcli editor

Fixes: 64c6b124d2
This commit is contained in:
Jiří Klimeš 2015-11-27 23:26:49 +01:00
parent d374352b99
commit cb049d2500

View file

@ -5325,6 +5325,10 @@ nmc_property_tun_set_mode (NMSetting *setting, const char *prop,
return TRUE;
}
static const char *tun_valid_modes[] = { "tun", "tap", "unknown", NULL };
DEFINE_ALLOWED_VAL_FUNC (nmc_property_tun_allowed_mode, tun_valid_modes)
/*----------------------------------------------------------------------------*/
static inline void
@ -7032,7 +7036,7 @@ nmc_properties_init (void)
nmc_property_tun_set_mode,
NULL,
NULL,
NULL,
nmc_property_tun_allowed_mode,
NULL);
nmc_add_prop_funcs (GLUE (TUN, OWNER),
nmc_property_tun_get_owner,