mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-02 01:30:37 +01:00
cli: allow TAB-completion for tun.mode in nmcli editor
Fixes: 64c6b124d2
This commit is contained in:
parent
d374352b99
commit
cb049d2500
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue