summaryrefslogtreecommitdiffstats
path: root/grpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* build: throw in a few more `XREF_SETUP`David Lamparter2024-05-092-0/+13
| | | | | | This really should be all of them. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: manual SPDX License ID conversionsDavid Lamparter2023-02-091-0/+1
| | | | | | | | | | The files converted in this commit either had some random misspelling or formatting weirdness that made them escape automated replacement, or have a particularly "weird" licensing setup (e.g. dual-licensed.) This also marks a bunch of "public domain" files as SPDX License "NONE". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: fix gRPC build dependenciesDavid Lamparter2022-10-261-0/+7
| | | | | | | The generated header files need a dependency on the generated .c file, otherwise build breaks when the header is used before it is generated. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: fix `AM_LDFLAGS` usage (and gcov)David Lamparter2021-07-211-1/+1
| | | | | | | | | | | | | | | | like the other automake variables, setting `xyz_LDFLAGS` causes `AM_LDFLAGS` to be ignored for `xyz`. For some reason I had in my mind that automake doesn't do this for LDFLAGS, but... it does. (Which is consistent with `_CFLAGS` and co.) So, all the libraries and modules have been ignoring `AM_LDFLAGS` (which includes `SAN_FLAGS` too). Set up new `LIB_LDFLAGS` and `MODULE_LDFLAGS` to handle all of this correctly (and move these bits to a central location.) Fixes: #9034 Fixes: 0c4285d77eb ("build: properly split CFLAGS from AC_CFLAGS") Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: fix protobuf out-of-tree buildDavid Lamparter2021-04-211-3/+3
| | | | | | | Otherwise it aborts with "File does not reside within any path specified using --proto_path (or -I)" Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: don't ignore error messages generated during the commit apply phaseRenato Westphal2020-08-151-0/+3
| | | | | | | | | | | | | | | | | | | | | While a configuration transaction can't be rejected once it reaches the APPLY phase, we should allow NB callbacks to generate error or warning messages when a configuration change is being applied. That should be useful, for example, to return warnings back to the user informing that the applied configuration has some kind of inconsistency or is missing something in order to be effectively activated. The infrastructure for this was already present, but the northbound layer was ignoring all errors/warnings generated during the apply/abort phases instead of returning them to the user. This commit changes that. In the gRPC plugin, extend the Commit() RPC adding a new "error_message" field to the response type. This is necessary to allow errors/warnings to be returned even when the commit operation succeeds (since grpc::Status::OK doesn't support error messages like the other status codes). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* grpc: relicense the northbound service description fileRenato Westphal2020-08-121-16/+23
| | | | | | | | | The GPL license is too restrictive and can "contaminate" client scripts using language bindings auto-generated from this file. We don't want this to happen. Adopt the BSD-2-Clause license to avoid any problem of this nature. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* build: add LLVM bitcode targetsDavid Lamparter2020-05-051-0/+2
| | | | | | | Just an easy way to produce LLVM .bc (bitcode) files. Not used during normal builds. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: fix "make tags"David Lamparter2019-09-171-0/+2
| | | | | | | | | | | Anything we list in a xxx_SOURCES variable will be included for "make tags", including filess marked as nodist_xxx_SOURCES. So if we don't have Protobuf enabled, even though the entire library isn't built, "make tags" will still try to process these files... which we can't autogenerate because Protobuf is disabled. Same for gRPC. Fixes: #3266 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: add new gRPC-based northbound pluginRenato Westphal2019-04-263-0/+452
This is an experimental plugin for now. Full documentation will come later. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>