mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 15:00:10 +01:00
cli: fix reading p-key and parent options for 'con add type infiniband'
This commit is contained in:
parent
ae319b922e
commit
05258cba88
1 changed files with 5 additions and 5 deletions
|
|
@ -2191,11 +2191,11 @@ cleanup_wired:
|
|||
const char *parent = NULL;
|
||||
const char *p_key = NULL;
|
||||
long p_key_int;
|
||||
nmc_arg_t exp_args[] = { {"mtu", TRUE, &mtu, FALSE},
|
||||
{"mac", TRUE, &mac, FALSE},
|
||||
{"transport-mode", TRUE, &mode, FALSE},
|
||||
{"parent", TRUE, &mode, FALSE},
|
||||
{"p-key", TRUE, &mode, FALSE},
|
||||
nmc_arg_t exp_args[] = { {"mtu", TRUE, &mtu, FALSE},
|
||||
{"mac", TRUE, &mac, FALSE},
|
||||
{"transport-mode", TRUE, &mode, FALSE},
|
||||
{"parent", TRUE, &parent, FALSE},
|
||||
{"p-key", TRUE, &p_key, FALSE},
|
||||
{NULL} };
|
||||
|
||||
if (!nmc_parse_args (exp_args, FALSE, &argc, &argv, error))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue