diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2020-07-15 13:43:04 -0700 | 
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2020-08-11 17:08:26 -0700 | 
| commit | 1c7f624509665a6d730837d54dc011ed44e418a3 (patch) | |
| tree | 01a6fa748be4c3827c404ef1993b46ff950dbeda /tools/gen_northbound_callbacks.c | |
| parent | 47cd22344168ccefb2bb9483c452cc33fd714899 (diff) | |
tools: nb generate callback script to use attr
northbound genrate callback script to use attr->event
in case passed in generated callbacks..
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'tools/gen_northbound_callbacks.c')
| -rw-r--r-- | tools/gen_northbound_callbacks.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen_northbound_callbacks.c b/tools/gen_northbound_callbacks.c index 8dccbac3ae..eaab932228 100644 --- a/tools/gen_northbound_callbacks.c +++ b/tools/gen_northbound_callbacks.c @@ -194,7 +194,7 @@ static void generate_callback(const struct nb_callback_info *ncinfo,  	case NB_OP_MODIFY:  	case NB_OP_DESTROY:  	case NB_OP_MOVE: -		printf("\tswitch (event) {\n" +		printf("\tswitch (args->event) {\n"  		       "\tcase NB_EV_VALIDATE:\n"  		       "\tcase NB_EV_PREPARE:\n"  		       "\tcase NB_EV_ABORT:\n"  | 
