mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
210cb09166ffc5e09db400dd1e7d8da919ab750a
You can pre-validate your OID ids prior to any other calls to your module. If onlp_<type>_id_validate() returns ONLP_STATUS_OK then the ID will be passed to your implementation. If onlp_<type>_id_validate() returns ONLP_STATUS_E_INVALID then it will not be passed to your implementation. The goal here is to avoid all of the boilerplate ID bounds checking in all of the platform implemenations that use static OID info arrays. Instead of validating in each function you should provide a single onlp_<type>_id_validate() and assume the ID is valid in all other functions. The default implementation returns ONLP_STATUS_OK for backwards compatibility.
Open Network Linux
Check out the main/offical website at http://opennetlinux.org .
Open Network Linux (ONL) is a Linux distribution for bare metal switches. ONL builds an ONIE-compatible installer and a switch image which contains a complete Debian distribution with added drivers and configuration for running on bare metal switches.
Software License
Licenses for the software are described under the LICENSE file. Download or use of the software implies consent.
Documentation
- docs/Building.md Instructions for building ONL from scratch.
Please see the docs directory for additional information.
![alt text] (https://scan.coverity.com/projects/8655/badge.svg "Coverity Scan Build Status")
Languages
C
92.6%
Python
4.5%
Makefile
2.1%
Shell
0.7%
Dockerfile
0.1%