summaryrefslogtreecommitdiffstats
path: root/grpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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>