Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support parsing and status publishing for the new cellular APIs
This is a first part in a series of commits implementing the new cellular APIs in EVE. All parts together will provide many new features for cellular connectivity, such as support for user credentials, multiple modems, multiple SIM slots, switching between 5G/4G/3G, and much more. Part I changelog: * added support for parsing and status publishing for the new cellular APIs into zedagent * extended JSON structs used to move config and status between NIM and wwan microservice to accommodate newly introduced attributes * NIM and wwan microservice for now work only in the backward-compatible mode. Support for the new APIs will be added into these microservices in the next parts of this commit/PR series. * added support for device models where cellular modems are referenced by USB or PCI address, not by interface name. Multiple modems can be initialized in different order on each boot, meaning that interface naming is not stable and therefore not suitable for modem identification. * added publishing of port MTU. This is for every port, not just wwan. However, especially for wwan interfaces this is useful because MTU config comes from the networt and it can vary quite a bit. * in DeviceNetworkStatus (DNS), errors collect from verification take precedence over whatever failures are detected when DNS is composed. For cellular connectivity, this ensures that we will not overwrite errors reported by the wwan microservice, which are much more useful than whatever NIM would report from its viewpoint. * moved ip utils and generics to sub-packages of pillar/utils so that they can be used from pillar/types without circular dependencies (used them for methods of wwan structures) * moved wwan types from zedroutertypes.go to a separate file wwan.go (these types are not used by zedrouter) Signed-off-by: Milan Lenco <milan@zededa.com>
- Loading branch information