Subject: Re: [PATCH net-next 3/7] ynl: support directional specs in ynl-gen-c.py

From: Jakub Kicinski <[email-masked]>
Date: Wed, 13 Nov 2024 12:12:56 -0800

On Wed, 13 Nov 2024 10:10:19 -0800 Stanislav Fomichev wrote:
> -    supported_models = ['unified']
> -    if args.mode in ['user', 'kernel']:
> -        supported_models += ['directional']
> -    if parsed.msg_id_model not in supported_models:
> -        print(f'Message enum-model {parsed.msg_id_model} not supported for {args.mode} generation')
> -        os.sys.exit(1)

Don't we still need to validate that it's one of the two options?