Lines Matching +full:multi +full:- +full:protocol
2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
25 YNL CLI utility - a general purpose netlink utility that uses YAML
26 specs to drive protocol encoding and decoding.
29 The --multi option can be repeated to include several do operations
35 parser.add_argument('--spec', dest='spec', type=str, required=True)
36 parser.add_argument('--schema', dest='schema', type=str)
37 parser.add_argument('--no-schema', action='store_true')
38 parser.add_argument('--json', dest='json_text', type=str)
41 group.add_argument('--do', dest='do', metavar='DO-OPERATION', type=str)
42 group.add_argument('--multi', dest='multi', nargs=2, action='append',
43 metavar=('DO-OPERATION', 'JSON_TEXT'), type=str)
44 group.add_argument('--dump', dest='dump', metavar='DUMP-OPERATION', type=str)
45 group.add_argument('--list-ops', action='store_true')
46 group.add_argument('--list-msgs', action='store_true')
48 parser.add_argument('--duration', dest='duration', type=int,
50 parser.add_argument('--sleep', dest='duration', type=int,
52 parser.add_argument('--subscribe', dest='ntf', type=str)
53 parser.add_argument('--replace', dest='flags', action='append_const',
55 parser.add_argument('--excl', dest='flags', action='append_const',
57 parser.add_argument('--create', dest='flags', action='append_const',
59 parser.add_argument('--append', dest='flags', action='append_const',
61 parser.add_argument('--process-unknown', action=argparse.BooleanOptionalAction)
62 parser.add_argument('--output-json', action='store_true')
63 parser.add_argument('--dbg-small-recv', default=0, const=4000,
102 if args.multi:
103 ops = [ (item[0], json.loads(item[1]), args.flags or []) for item in args.multi ]