Skip to content

Commit

Permalink
Merge pull request #909
Browse files Browse the repository at this point in the history
redfish: decode smbios and setup host interface

Add initial support to decode the SMBIOS Management Controller Host
Interface (Type 42) structure and expose it as wicked `firmware:redfish`
configuration to setup a Host Network Interface (to the BMC) using the
`Redfish over IP` protocol allowing access to the Redfish Service (via
redfish-localhost in /etc/hosts) used to manage the computer system.
Tech Preview (jsc#SLE-17762).

See also:
 - https://www.dmtf.org/standards/redfish
 - https://www.dmtf.org/dsp/DSP0270
  • Loading branch information
mtomaschewski committed Apr 13, 2022
2 parents 1b57397 + 2d32bf7 commit 064f883
Show file tree
Hide file tree
Showing 21 changed files with 4,256 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Makefile.in
/etc/client.xml
/etc/server.xml
/etc/nanny.xml
/etc/scripts/redfish-update
/etc/systemv/wickedd
/etc/systemv/network
/etc/systemv/*.service
Expand Down
2 changes: 2 additions & 0 deletions client/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if wicked_compat_redhat
wicked_CPPFLAGS += -DCOMPAT_REDHAT
endif
endif
wicked_CPPFLAGS += -DWICKED_EXTENSIONSDIR=\"$(wicked_extensionsdir)\"

wicked_CFLAGS = $(LIBNL_CFLAGS) \
$(LIBDBUS_CFLAGS) \
Expand Down Expand Up @@ -68,6 +69,7 @@ wicked_SOURCES = \
main.c \
nanny.c \
reachable.c \
redfish.c \
tester.c

noinst_HEADERS = \
Expand Down
4 changes: 4 additions & 0 deletions client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ main(int argc, char **argv)
" show-policy [options] [<ifname ...>|all]\n"
" convert [options] [<ifname ...>|all]\n"
" ethtool [options] <ifname> <...>\n"
" redfish [options] <action>\n"
" getnames [options]\n"
" xpath [options] expr ...\n"
" nanny <action> ...\n"
Expand Down Expand Up @@ -335,6 +336,9 @@ main(int argc, char **argv)
} else
if (!strcmp(cmd, "bootstrap")) {
status = ni_do_ifup(argc - optind, argv + optind);
} else
if (!strcmp(cmd, "redfish")) {
status = ni_wicked_redfish(program, argc - optind, argv + optind);
} else {
fprintf(stderr, "Unsupported command %s\n", cmd);
goto usage;
Expand Down
1 change: 1 addition & 0 deletions client/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ extern int ni_do_iaid(const char *caller, int argc, char **argv);
extern int ni_do_ethtool(const char *caller, int argc, char **argv);

extern int ni_wicked_convert(const char *caller, int argc, char **argv);
extern int ni_wicked_redfish(const char *caller, int argc, char **argv);

#endif /* WICKED_CLIENT_MAIN_H */
Loading

0 comments on commit 064f883

Please sign in to comment.