1NOZZLE_RUN_UPDOWN(3)     Kronosnet Programmer's Manual    NOZZLE_RUN_UPDOWN(3)
2
3
4

NAME

6       nozzle_run_updown  -  execute  updown commands associated with a nozzle
7       device.
8

SYNOPSIS

10       #include <libnozzle.h>
11
12       int nozzle_run_updown(
13           const nozzle_t  nozzle,
14           uint8_t         action,
15           char          **exec_string
16       );
17

DESCRIPTION

19       nozzle_run_updown
20
21       nozzle - pointer to the nozzle struct
22
23       action - pre-up.d / up.d / down.d / post-down.d (see defines above)
24
25       exec_string - pointers  to  string  to  record  executing  action  std‐
26       out/stderr.  The string is malloc'ed, the caller needs to free the buf‐
27       fer. If the script generates no output this string might be NULL.
28
29       It is the application responsibility to call helper scripts  before  or
30       after creating/destroying interfaces or IP addresses.
31

RETURN VALUE

33       0  on  success -1 on error and errno is set (sanity checks and internal
34       calls. -2 on error from executing the shell scripts, and  no  errno  is
35       set.
36

SEE ALSO

38       nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
39       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
40       nozzle_get_ips(3), nozzle_set_down(3), nozzle_reset_mac(3),
41       nozzle_get_handle_by_name(3), nozzle_open(3), nozzle_del_ip(3),
42       nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
43       nozzle_add_ip(3)
44
46       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
47
48
49
50kronosnet                         2020-10-19              NOZZLE_RUN_UPDOWN(3)
Impressum