Commit Graph

655 Commits

Author SHA1 Message Date
Jeffrey Townsend
77bbf18619 Re-enable ISMT support. 2016-12-21 15:29:46 +00:00
Jeffrey Townsend
bb5c865b97 Enable/Disable ISMT driver through module parameter. 2016-12-21 15:28:35 +00:00
Jeffrey Townsend
6ab5f38d33 The column output may differ based on the locale settings.
When run from init the mpstat output is in 24 time and does not have the AM/PM column.
This change handles both possibilities.
2016-12-20 21:10:08 +00:00
Jeffrey Townsend
3a6d0e0d29 Merge pull request #146 from kenchiang/onlp-snmp
Add CpuAllPercentUtilization and CpuAllPercentIdle.
2016-12-20 10:23:19 -08:00
Ken Chiang
e85b4d45f0 Redefine CpuAllPercentUtilization and CpuAllPercentIdle to be 100 times the percentage rounded to the nearest integer.
Use aim_time_monotonic.
Add ONLP_SNMP_CONFIG_RESOURCE_UPDATE_SECONDS.
2016-12-19 13:33:55 -08:00
Ken Chiang
68da278bed Add CpuAllPercentUtilization and CpuAllPercentIdle. 2016-12-19 11:23:56 -08:00
Jeffrey Townsend
2449ac19c5 Set platform_name to correct value. 2016-12-19 15:59:57 +00:00
Jeffrey Townsend
05f85f7b6d Merge pull request #145 from jnealtowns/mlnx_syseeprom
Update system eeprom support for Mellanox Platforms
2016-12-19 07:22:10 -08:00
Jeffrey Townsend
f2f35df0ec Add new onlp_sys_hdr_get() wrapper around onlp_sysi_oids_get() to improve OID iteration.
We don't need the full system information (ONIE and platform) retrieved each time we want
to iterate the OIDs.
2016-12-16 22:03:34 +00:00
Jeffrey Townsend
bfe8894c25 Use the new common ONIE syseeprom and machine.conf infrastructure.
The ONL platform base class supports extracting, parsing, and caching the contents of the ONIE machine.conf file
and the TLVs in the ONIE system eeprom.

The mellanox platforms that rely on this information now request it from the common baseclass and use
the common ONIE JSON parsing infrastructure to populate the onie_info structure in the SYSI implementation.
2016-12-15 14:35:56 -08:00
Jeffrey Townsend
fa2bf42480 Add method to rewrite eeprom.json 2016-12-15 13:31:11 -08:00
Jeffrey Townsend
df268cc22a Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-12-15 11:57:08 -08:00
Jeffrey Townsend
0427357fca Initial. 2016-12-15 11:56:54 -08:00
Jeffrey Townsend
49f8921a13 - Improve ONIE TLV processing. Still WIP.
- Read ONIE data from the platform's onie-syseeprom contents.
2016-12-15 19:31:42 +00:00
Jeffrey Townsend
43439afa75 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-12-15 16:12:21 +00:00
Jeffrey Townsend
d4d574e351 Add subcommand "rw"
This subcommand can be used to execute a shell command under read-write context.

For example:
  #> onlfs rw images rm /mnt/onl/images/*.swi
2016-12-15 16:09:50 +00:00
Michael Shych
799a402c37 Changes in usage of onlp_file_read/onlp_file_write APIs.
Signed-off-by: Michael Shych <michaelsh@mellanox.com>
2016-12-15 17:09:37 +00:00
Jeffrey Townsend
3476fffc5f Merge pull request #142 from brandonchuang/master
[as5710] Support DC12V power supply(PSU-12V-650)
2016-12-14 17:05:39 -08:00
Jeffrey Townsend
3799de109f Merge pull request #143 from kenchiang/onlp-snmp
Always call snmp_set_var_typed_value so that snmpwalk does not prematurely terminate
2016-12-14 17:05:30 -08:00
Ken Chiang
7d6aeb18fd Always call snmp_set_var_typed_value so that snmpwalk does not prematurely
terminate.  If sensor is not present, return a value of zero
or a zero-length string.
2016-12-14 15:57:02 -08:00
Jeffrey Townsend
82d853db94 Merge pull request #140 from micshy/mlnx_msn2700_msn2100_msn2410
Mellanox MSN2700, MSN2100 and MSN2410 platforms ONL support.
2016-12-14 12:49:56 -08:00
Jeffrey Townsend
b42afe586b Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-12-14 16:55:40 +00:00
Jeffrey Townsend
1c7beb8005 - Add platform objects
These were accidentally overwritten by the sensor registration changes.
  They belong in their own file anyways so the code has been split and the registration
  moved to a common location.
2016-12-14 16:53:35 +00:00
brandonchuang
721ad5758b [as5710] Restore the define of SFP_BUS 2016-12-14 11:23:09 +08:00
brandonchuang
8db58bd0d8 [as5710] Support DC12V power supply(PSU-12V-650) 2016-12-14 11:06:39 +08:00
Jeffrey Townsend
2018320174 Except only if required. 2016-12-13 21:32:08 +00:00
Jeffrey Townsend
aada217a4c Use /bin/sh instead of /bin/bash (for execution under the loader). 2016-12-13 21:31:41 +00:00
Jeffrey Townsend
cd36ff8afd Merge pull request #138 from maxchung2001/master
Added community support email opennetworklinux@googlegroups.com
2016-12-12 15:15:46 -08:00
Jeffrey Townsend
de0643739a Merge pull request #139 from brandonchuang/master
Fix FAN1 and FAN2 id reversed issue
2016-12-12 14:48:41 -08:00
Jeffrey Townsend
525e518716 Add new OCP-ONL-RESOURCE-MIB
Used to define custom host resource objects.
2016-12-12 22:01:27 +00:00
Jeffrey Townsend
51511aa621 Latest 2016-12-12 20:12:39 +00:00
Jeffrey Townsend
e5cb3f6ec1 [from @kenchiang]
Rework snmp oid registration so that the temperature, fan, and PSU oids are registered as netsnmp tables. When a sensor is added or deleted, the corresponding table is updated accordingly.
2016-12-12 20:10:30 +00:00
Jeffrey Townsend
97f1dcbc58 New operational status and OID Header APIs
The following new APIs are introduced:

onlp_<subsystem>_status_get()
- Retreives only the operational status (PRESENT, FAILED, UNPLUGGED) of the object
  Useful for improving the performance of the platform manager, whose primary concern
  is the operational status, not the object information itself.

onlp_<subsystem>_hdr_get()
- Retrieves the OID header (description, parent, children) only.
  Improved performance of OID iteration by avoiding collection of all
  of the unused object information during execution.

If a platform does not implement these functions they will be simulated using
calls to the existing onlp_<subsystem>_info_get(), which reduces to the
original performance level.
2016-12-12 20:09:04 +00:00
Michael Shych
7e6a18bf4d Mellanox MSN2700, MSN2100 and MSN2410 platforms ONL support.
Signed-off-by: Michael Shych <michaelsh@mellanox.com>
2016-12-11 14:18:34 +00:00
Jeffrey Townsend
65529d39fe Detect both SYS_VENDOR and BOARD_VENDOR. 2016-12-10 15:33:36 +00:00
Jeffrey Townsend
06c2d4bf58 Latest 2016-12-09 07:42:30 -08:00
brandonchuang
b8c67183ea Fix FAN1 and FAN2 id reversed issue 2016-12-09 17:28:10 +08:00
Sung-Kuang (Max) Chung
f7cc57aced Merge branch 'master' of https://github.com/opencomputeproject/OpenNetworkLinux 2016-12-07 22:07:57 -08:00
Sung-Kuang (Max) Chung
1a90e3c514 Added community support email opennetworklinux@googlegroups.com,
as support@bigswitch.com "is a support line for commercial Big Switch
products for customer with paid licenses."
2016-12-07 21:56:03 -08:00
Jeffrey Townsend
a0e4cae7c4 Support manual uninstall mode as a last resort. 2016-12-08 03:46:36 +00:00
Jeffrey Townsend
f6cc003469 Provide common access to machine.conf and the output of onie-syseeprom.
Some platforms do not provide direct device access to the ONIE system eeprom.
The only way these systems can export their system data under ONL is by scraping it
from the output of onie-syseeprom and/or reading fields from machine.conf.

These new platform methods can be called in a platform's baseconfig() to
populate the cached version of these values for later use, or used
to access that cached data at a later time.
2016-12-07 20:14:03 +00:00
Jeffrey Townsend
2241b65dfa Set upgrade ONIE and Firmware upgrade policy from sysconfig. 2016-12-07 17:55:27 +00:00
Zi Zhou
0a635a9e3e report correct fan speed when fan speed changes according to thermal plan 2016-12-05 17:57:53 -08:00
Jeffrey Townsend
add948d33f Add force_overrite paramater and return whether the file was re-written or not.
This functionality is useful for upgrade scenarios.
2016-12-01 18:20:14 +00:00
Jeffrey Townsend
f8df569c2d Tolerate missing dmidecode module amd missing platform info object. 2016-12-01 17:14:04 +00:00
Jeffrey Townsend
cbec27d710 Handle empty images. 2016-12-01 17:13:32 +00:00
Jeffrey Townsend
96cf925350 Merge branch 'master' of github.com:carlroth/OpenNetworkLinux 2016-11-30 19:34:27 -08:00
Carl D. Roth
0f2b922be8 attach, then shutdown, the internal components 2016-11-30 18:24:32 -08:00
Carl D. Roth
271434a71c Oops, unmount the contents of this (temporary) onie boot context 2016-11-30 18:23:58 -08:00
Carl D. Roth
8bee5e7796 Refactor the unmount part of the initrd context shutdown 2016-11-30 18:23:34 -08:00