Network

本文介绍了一种用于检测无向图中割点数量的算法。通过深度优先搜索(DFS)和回溯技术,算法能确定哪些节点是割点,即如果移除这些节点将导致图分裂成多个连通组件。文章提供了完整的C++代码实现,包括输入输出示例,适用于解决电话线路网络中关键地点的识别问题。

题目描述:

A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines are bidirectional and always connect together two places and in each place the lines end in a telephone exchange. There is one telephone exchange in each place. From each place it is

possible to reach through lines every other place, however it need not be a direct connection, it can go through several exchanges. From time to time the power supply fails at a place and then the exchange does not operate. The officials from TLC realized that in such a case it can happen that besides the fact that the place with the failure is unreachable, this can also cause that some other places cannot connect to each other. In such a case we will say the place (where the failure

occured) is critical. Now the officials are trying to write a program for finding the number of all such critical places. Help them.
给定多张无向图,求出每张图中割点数量

输入:

多组数据

每组数据第一行一个n,当n=0时输入结束

后面不超过n行,每行第一个数x,当x=0时该组数据结束

x后面一列数a,ai表示x与ai间有一条无向边

(若原图中有边a-b,则保证输入中至少会在a后面有b或者在b后面有a

输出:

每组数据输出图中割点数目

样例输入:

5
5 1 2 3 4
0
6
2 1 3
5 4 6 2
0
0

样例输出:

1
2

code:

糟心的输入。。。。看了半天也没有看懂到底是什么意思。。。。
总的来说,就是求割点的数量

#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
const int maxn=1500;
int n;
int cnt=0;
bool cut[maxn];
int head[maxn];
int visit[maxn];
int dfn[maxn];
int low[maxn];
struct node{
	int to,next;
}edge[maxn*2];
void add(int u,int v)
{
	edge[cnt].to=v;
	edge[cnt].next=head[u];
	head[u]=cnt++;
}
void bridge(int what,int father,int dep)
{
	visit[what]=1;
	dfn[what]=low[what]=dep;
	int child=0;
	for(int i=head[what];i!=-1;i=edge[i].next)
	{
		int x=edge[i].to;
		if(visit[x]==1)
		{
			low[what]=min(dfn[x],low[what]);
		}
		if(visit[x]==0)
		{
			bridge(x,what,dep+1);
			child++;
			low[what]=min(low[what],low[x]);
			if((father==-1&&child>1)||(father!=-1&&low[x]>=dfn[what]))
				cut[what]=1;
		}
	}
	visit[what]=2;
}
int main()
{
	while(~scanf("%d",&n)&&n)
	{
		cnt=0;
		memset(edge,0,sizeof(edge));
		memset(cut,0,sizeof(cut));
		memset(head,-1,sizeof(head));
		memset(visit,0,sizeof(visit));
		memset(dfn,0,sizeof(dfn));
		memset(low,0,sizeof(low));
		int u;
		scanf("%d",&u);
		while(u)
		{
			int v;
			while(getchar()!='\n')
			{
				scanf("%d",&v);
				add(u,v);
				add(v,u);
			}
			scanf("%d",&u);
		}
		for(int i=1;i<=n;i++)
		{
			if(visit[i]==0)
			{
				bridge(i,-1,0);
			}
		}
		int ans=0;
		for(int i=1;i<=n;i++)
		{
			if(cut[i])ans++;
		}
		printf("%d\n",ans);
	}
	return 0;
}
        
转成json格式,需要完整。Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.type': '#NetworkAdapter.v1_9_0.NetworkAdapter', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000', '@odata.etag': 'W/"A7F072DD"', '@Redfish.Settings': {'@odata.type': '#Settings.v1_3_3.Settings', 'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Settings'}, 'SupportedApplyTimes': ['OnReset']}, 'Id': 'DE07B000', 'Name': 'Network Adapter', 'Manufacturer': 'Broadcom', 'Model': 'BCM57412', 'SKU': '10Gb 2-port SFP+ BCM57412 OCP3 Adapter', 'SerialNumber': 'VNM3400M6T', 'PartNumber': 'P26258-001', 'Status': {'Health': 'OK', 'State': 'Enabled'}, 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Ports'}, 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/NetworkDeviceFunctions'}, 'Metrics': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Metrics'}, 'Controllers': [{'FirmwarePackageVersion': '229.1.123.0', 'Links': {'PCIeDevices': [{'@odata.id': '/redfish/v1/Chassis/1/PCIeDevices/DE07B000'}]}, 'ControllerCapabilities': {'NetworkPortCount': 2, 'NetworkDeviceFunctionCount': 2, 'DataCenterBridging': {'Capable': True}, 'NPAR': {'NparCapable': True, 'NparEnabled': False}, 'VirtualizationOffload': {'SRIOV': {'SRIOVVEPACapable': True}, 'VirtualFunction': {'DeviceMaxCount': 128, 'MinAssignmentGroupSize': 8, 'NetworkPortMaxCount': 128}}}, 'PCIeInterface': {'LanesInUse': 8, 'MaxLanes': 8, 'MaxPCIeType': 'Gen3', 'PCIeType': 'Gen3'}}], 'LLDPEnabled': True, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Actions/NetworkAdapter.ResetSettingsToDefault', '@Redfish.OperationApplyTimeSupport': {'@odata.type': '#Settings.v1_3_3.OperationApplyTimeSupport', 'SupportedValues': ['OnReset']}}}} Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.type': '#NetworkAdapter.v1_9_0.NetworkAdapter', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000', '@odata.etag': 'W/"34EAB2A0"', '@Redfish.Settings': {'@odata.type': '#Settings.v1_3_3.Settings', 'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Settings'}, 'SupportedApplyTimes': ['OnReset']}, 'Id': 'DE080000', 'Name': 'Network Adapter', 'Manufacturer': 'Broadcom', 'Model': 'BCM57412', 'SKU': '10Gb 2-port SFP+ BCM57412 Adapter', 'SerialNumber': 'VNM40109YH', 'PartNumber': 'P26261-001', 'Status': {'Health': 'OK', 'State': 'Enabled'}, 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Ports'}, 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/NetworkDeviceFunctions'}, 'Metrics': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Metrics'}, 'Controllers': [{'FirmwarePackageVersion': '229.1.123.0', 'Links': {'PCIeDevices': [{'@odata.id': '/redfish/v1/Chassis/1/PCIeDevices/DE080000'}]}, 'ControllerCapabilities': {'NetworkPortCount': 2, 'NetworkDeviceFunctionCount': 2, 'DataCenterBridging': {'Capable': True}, 'NPAR': {'NparCapable': True, 'NparEnabled': False}, 'VirtualizationOffload': {'SRIOV': {'SRIOVVEPACapable': True}, 'VirtualFunction': {'DeviceMaxCount': 128, 'MinAssignmentGroupSize': 8, 'NetworkPortMaxCount': 128}}}, 'PCIeInterface': {'LanesInUse': 8, 'MaxLanes': 8, 'MaxPCIeType': 'Gen3', 'PCIeType': 'Gen3'}}], 'LLDPEnabled': True, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Actions/NetworkAdapter.ResetSettingsToDefault', '@Redfish.OperationApplyTimeSupport': {'@odata.type': '#Settings.v1_3_3.OperationApplyTimeSupport', 'SupportedValues': ['OnReset']}}}} Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.etag': 'W/"61BF49E3"', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000', '@odata.type': '#NetworkAdapter.v1_5_0.NetworkAdapter', 'Id': 'DC081000', '@Redfish.Settings': {'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Settings'}}, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/NetworkAdapter.ResetSettingsToDefault', 'title': 'Reset network adapter configuration to factory default values.'}}, 'Controllers': [{'ControllerCapabilities': {'DataCenterBridging': {'Capable': False}, 'NPIV': {'MaxDeviceLogins': 256, 'MaxPortLogins': 128}, 'NetworkDeviceFunctionCount': 2, 'NetworkPortCount': 2}, 'FirmwarePackageVersion': '2.02.05', 'Links': {'NetworkDeviceFunctions': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions/2'}], 'NetworkPorts': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts/2'}], 'Ports': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports/2'}]}, 'Location': {'PartLocation': {'LocationOrdinalValue': 2, 'LocationType': 'Slot', 'ServiceLabel': 'PCI-E Slot 2'}}}], 'Description': 'Device capabilities and characteristics with active configuration status', 'Manufacturer': 'Hewlett Packard Enterprise', 'Model': 'HPE SN1100Q 16Gb 2p FC HBA', 'Name': 'HPE SN1100Q 16Gb 2P FC HBA', 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions'}, 'NetworkPorts': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts'}, 'Oem': {'Hpe': {'@odata.context': '/redfish/v1/$metadata#HpeNetworkAdapter.HpeNetworkAdapter', '@odata.type': '#HpeNetworkAdapter.v1_3_0.HpeNetworkAdapter', 'Actions': {'#HpeNetworkAdapter.FlushConfigurationToNVM': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/Oem/Hpe/HpeNetworkAdapter.FlushConfigurationToNVM', 'title': 'Force a save of current network adapter configuration to non-volatile storage.'}, '#NetworkAdapter.FlushConfigurationToNVM': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/Oem/Hpe/NetworkAdapter.FlushConfigurationToNVM', 'title': 'NOTE: Deprecated, will be removed in a future release. Replaced by HpeNetworkAdapter.FlushConfigurationToNVM. Force a save of current network adapter configuration to non-volatile storage.'}}, 'CLPVersion': '', 'Controllers': [{'ConfigurationStatus': {'Detail': [{'Group': 6, 'SubGroup': 0, 'Summary': 0}, {'Group': 8, 'SubGroup': 1, 'Summary': 0}, {'Group': 8, 'SubGroup': 2, 'Summary': 0}, {'Group': 15, 'SubGroup': 0, 'Summary': 0}, {'Group': 15, 'SubGroup': 1, 'Summary': 0}, {'Group': 34, 'SubGroup': 1, 'Summary': 0}, {'Group': 34, 'SubGroup': 2, 'Summary': 0}], 'Summary': 869593167}, 'DeviceLimitationsBitmap': 0, 'FunctionTypeLimits': [], 'FunctionTypes': ['FibreChannel'], 'MostRecentConfigurationChangeSource': 'None', 'RDMASupport': ['None'], 'UnderlyingDataSource': 'DCi'}], 'FactoryDefaultsActuationBehavior': 'AtNextReboot', 'PCAVersion': 'P9D94-63001', 'RedfishConfiguration': 'Disabled'}}, 'PartNumber': 'P9D94A', 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports'}, 'SKU': 'SN1100Q', 'SerialNumber': 'MY5332214N', 'Settings': {'href': '/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Settings'}} Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.etag': 'W/"E24DDEBE"', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000', '@odata.type': '#NetworkAdapter.v1_5_0.NetworkAdapter', 'Id': 'DC082000', '@Redfish.Settings': {'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Settings'}}, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/NetworkAdapter.ResetSettingsToDefault', 'title': 'Reset network adapter configuration to factory default values.'}}, 'Controllers': [{'ControllerCapabilities': {'DataCenterBridging': {'Capable': False}, 'NPIV': {'MaxDeviceLogins': 256, 'MaxPortLogins': 128}, 'NetworkDeviceFunctionCount': 2, 'NetworkPortCount': 2}, 'FirmwarePackageVersion': '2.02.05', 'Links': {'NetworkDeviceFunctions': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions/2'}], 'NetworkPorts': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts/2'}], 'Ports': [{'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports/1'}, {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports/2'}]}, 'Location': {'PartLocation': {'LocationOrdinalValue': 3, 'LocationType': 'Slot', 'ServiceLabel': 'PCI-E Slot 3'}}}], 'Description': 'Device capabilities and characteristics with active configuration status', 'Manufacturer': 'Hewlett Packard Enterprise', 'Model': 'HPE SN1100Q 16Gb 2p FC HBA', 'Name': 'HPE SN1100Q 16Gb 2P FC HBA', 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions'}, 'NetworkPorts': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts'}, 'Oem': {'Hpe': {'@odata.context': '/redfish/v1/$metadata#HpeNetworkAdapter.HpeNetworkAdapter', '@odata.type': '#HpeNetworkAdapter.v1_3_0.HpeNetworkAdapter', 'Actions': {'#HpeNetworkAdapter.FlushConfigurationToNVM': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/Oem/Hpe/HpeNetworkAdapter.FlushConfigurationToNVM', 'title': 'Force a save of current network adapter configuration to non-volatile storage.'}, '#NetworkAdapter.FlushConfigurationToNVM': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/Oem/Hpe/NetworkAdapter.FlushConfigurationToNVM', 'title': 'NOTE: Deprecated, will be removed in a future release. Replaced by HpeNetworkAdapter.FlushConfigurationToNVM. Force a save of current network adapter configuration to non-volatile storage.'}}, 'CLPVersion': '', 'Controllers': [{'ConfigurationStatus': {'Detail': [{'Group': 6, 'SubGroup': 0, 'Summary': 0}, {'Group': 8, 'SubGroup': 1, 'Summary': 0}, {'Group': 8, 'SubGroup': 2, 'Summary': 0}, {'Group': 15, 'SubGroup': 0, 'Summary': 0}, {'Group': 15, 'SubGroup': 1, 'Summary': 0}, {'Group': 34, 'SubGroup': 1, 'Summary': 0}, {'Group': 34, 'SubGroup': 2, 'Summary': 0}], 'Summary': 869593167}, 'DeviceLimitationsBitmap': 0, 'FunctionTypeLimits': [], 'FunctionTypes': ['FibreChannel'], 'MostRecentConfigurationChangeSource': 'None', 'RDMASupport': ['None'], 'UnderlyingDataSource': 'DCi'}], 'FactoryDefaultsActuationBehavior': 'AtNextReboot', 'PCAVersion': 'P9D94-63001', 'RedfishConfiguration': 'Disabled'}}, 'PartNumber': 'P9D94A', 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports'}, 'SKU': 'SN1100Q', 'SerialNumber': 'MY5332214L', 'Settings': {'href': '/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Settings'}} Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.type': '#NetworkAdapter.v1_9_0.NetworkAdapter', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000', '@odata.etag': 'W/"2AE16ECF"', '@Redfish.Settings': {'@odata.type': '#Settings.v1_3_3.Settings', 'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Settings'}, 'SupportedApplyTimes': ['OnReset']}, 'Id': 'DE07B000', 'Name': 'Network Adapter', 'Manufacturer': 'Broadcom', 'Model': 'BCM57412', 'SKU': '10Gb 2-port SFP+ BCM57412 OCP3 Adapter', 'SerialNumber': 'VNM3400SXF', 'PartNumber': 'P26258-001', 'Status': {'Health': 'OK', 'State': 'Enabled'}, 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Ports'}, 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/NetworkDeviceFunctions'}, 'Metrics': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Metrics'}, 'Controllers': [{'FirmwarePackageVersion': '229.1.123.0', 'Links': {'PCIeDevices': [{'@odata.id': '/redfish/v1/Chassis/1/PCIeDevices/DE07B000'}]}, 'ControllerCapabilities': {'NetworkPortCount': 2, 'NetworkDeviceFunctionCount': 2, 'DataCenterBridging': {'Capable': True}, 'NPAR': {'NparCapable': True, 'NparEnabled': False}, 'VirtualizationOffload': {'SRIOV': {'SRIOVVEPACapable': True}, 'VirtualFunction': {'DeviceMaxCount': 128, 'MinAssignmentGroupSize': 8, 'NetworkPortMaxCount': 128}}}, 'PCIeInterface': {'LanesInUse': 8, 'MaxLanes': 8, 'MaxPCIeType': 'Gen3', 'PCIeType': 'Gen3'}}], 'LLDPEnabled': True, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Actions/NetworkAdapter.ResetSettingsToDefault', '@Redfish.OperationApplyTimeSupport': {'@odata.type': '#Settings.v1_3_3.OperationApplyTimeSupport', 'SupportedValues': ['OnReset']}}}} Debug - HBA卡信息: {'@odata.context': '/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter', '@odata.type': '#NetworkAdapter.v1_9_0.NetworkAdapter', '@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000', '@odata.etag': 'W/"20FD634C"', '@Redfish.Settings': {'@odata.type': '#Settings.v1_3_3.Settings', 'SettingsObject': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Settings'}, 'SupportedApplyTimes': ['OnReset']}, 'Id': 'DE080000', 'Name': 'Network Adapter', 'Manufacturer': 'Broadcom', 'Model': 'BCM57412', 'SKU': '10Gb 2-port SFP+ BCM57412 Adapter', 'SerialNumber': 'VNM40109SX', 'PartNumber': 'P26261-001', 'Status': {'Health': 'OK', 'State': 'Enabled'}, 'Ports': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Ports'}, 'NetworkDeviceFunctions': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/NetworkDeviceFunctions'}, 'Metrics': {'@odata.id': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Metrics'}, 'Controllers': [{'FirmwarePackageVersion': '229.1.123.0', 'Links': {'PCIeDevices': [{'@odata.id': '/redfish/v1/Chassis/1/PCIeDevices/DE080000'}]}, 'ControllerCapabilities': {'NetworkPortCount': 2, 'NetworkDeviceFunctionCount': 2, 'DataCenterBridging': {'Capable': True}, 'NPAR': {'NparCapable': True, 'NparEnabled': False}, 'VirtualizationOffload': {'SRIOV': {'SRIOVVEPACapable': True}, 'VirtualFunction': {'DeviceMaxCount': 128, 'MinAssignmentGroupSize': 8, 'NetworkPortMaxCount': 128}}}, 'PCIeInterface': {'LanesInUse': 8, 'MaxLanes': 8, 'MaxPCIeType': 'Gen3', 'PCIeType': 'Gen3'}}], 'LLDPEnabled': True, 'Actions': {'#NetworkAdapter.ResetSettingsToDefault': {'target': '/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Actions/NetworkAdapter.ResetSettingsToDefault', '@Redfish.OperationApplyTimeSupport': {'@odata.type': '#Settings.v1_3_3.OperationApplyTimeSupport', 'SupportedValues': ['OnReset']}}}}
最新发布
09-29
```json [ { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.type": "#NetworkAdapter.v1_9_0.NetworkAdapter", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000", "@odata.etag": "W/\"A7F072DD\"", "@Redfish.Settings": { "@odata.type": "#Settings.v1_3_3.Settings", "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Settings" }, "SupportedApplyTimes": ["OnReset"] }, "Id": "DE07B000", "Name": "Network Adapter", "Manufacturer": "Broadcom", "Model": "BCM57412", "SKU": "10Gb 2-port SFP+ BCM57412 OCP3 Adapter", "SerialNumber": "VNM3400M6T", "PartNumber": "P26258-001", "Status": { "Health": "OK", "State": "Enabled" }, "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Ports" }, "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/NetworkDeviceFunctions" }, "Metrics": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Metrics" }, "Controllers": [ { "FirmwarePackageVersion": "229.1.123.0", "Links": { "PCIeDevices": [ { "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/DE07B000" } ] }, "ControllerCapabilities": { "NetworkPortCount": 2, "NetworkDeviceFunctionCount": 2, "DataCenterBridging": { "Capable": true }, "NPAR": { "NparCapable": true, "NparEnabled": false }, "VirtualizationOffload": { "SRIOV": { "SRIOVVEPACapable": true }, "VirtualFunction": { "DeviceMaxCount": 128, "MinAssignmentGroupSize": 8, "NetworkPortMaxCount": 128 } } }, "PCIeInterface": { "LanesInUse": 8, "MaxLanes": 8, "MaxPCIeType": "Gen3", "PCIeType": "Gen3" } } ], "LLDPEnabled": true, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Actions/NetworkAdapter.ResetSettingsToDefault", "@Redfish.OperationApplyTimeSupport": { "@odata.type": "#Settings.v1_3_3.OperationApplyTimeSupport", "SupportedValues": ["OnReset"] } } } }, { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.type": "#NetworkAdapter.v1_9_0.NetworkAdapter", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000", "@odata.etag": "W/\"34EAB2A0\"", "@Redfish.Settings": { "@odata.type": "#Settings.v1_3_3.Settings", "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Settings" }, "SupportedApplyTimes": ["OnReset"] }, "Id": "DE080000", "Name": "Network Adapter", "Manufacturer": "Broadcom", "Model": "BCM57412", "SKU": "10Gb 2-port SFP+ BCM57412 Adapter", "SerialNumber": "VNM40109YH", "PartNumber": "P26261-001", "Status": { "Health": "OK", "State": "Enabled" }, "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Ports" }, "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/NetworkDeviceFunctions" }, "Metrics": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Metrics" }, "Controllers": [ { "FirmwarePackageVersion": "229.1.123.0", "Links": { "PCIeDevices": [ { "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/DE080000" } ] }, "ControllerCapabilities": { "NetworkPortCount": 2, "NetworkDeviceFunctionCount": 2, "DataCenterBridging": { "Capable": true }, "NPAR": { "NparCapable": true, "NparEnabled": false }, "VirtualizationOffload": { "SRIOV": { "SRIOVVEPACapable": true }, "VirtualFunction": { "DeviceMaxCount": 128, "MinAssignmentGroupSize": 8, "NetworkPortMaxCount": 128 } } }, "PCIeInterface": { "LanesInUse": 8, "MaxLanes": 8, "MaxPCIeType": "Gen3", "PCIeType": "Gen3" } } ], "LLDPEnabled": true, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Actions/NetworkAdapter.ResetSettingsToDefault", "@Redfish.OperationApplyTimeSupport": { "@odata.type": "#Settings.v1_3_3.OperationApplyTimeSupport", "SupportedValues": ["OnReset"] } } } }, { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.etag": "W/\"61BF49E3\"", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000", "@odata.type": "#NetworkAdapter.v1_5_0.NetworkAdapter", "Id": "DC081000", "@Redfish.Settings": { "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Settings" } }, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/NetworkAdapter.ResetSettingsToDefault", "title": "Reset network adapter configuration to factory default values." } }, "Controllers": [ { "ControllerCapabilities": { "DataCenterBridging": { "Capable": false }, "NPIV": { "MaxDeviceLogins": 256, "MaxPortLogins": 128 }, "NetworkDeviceFunctionCount": 2, "NetworkPortCount": 2 }, "FirmwarePackageVersion": "2.02.05", "Links": { "NetworkDeviceFunctions": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions/2" } ], "NetworkPorts": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts/2" } ], "Ports": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports/2" } ] }, "Location": { "PartLocation": { "LocationOrdinalValue": 2, "LocationType": "Slot", "ServiceLabel": "PCI-E Slot 2" } } } ], "Description": "Device capabilities and characteristics with active configuration status", "Manufacturer": "Hewlett Packard Enterprise", "Model": "HPE SN1100Q 16Gb 2p FC HBA", "Name": "HPE SN1100Q 16Gb 2P FC HBA", "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkDeviceFunctions" }, "NetworkPorts": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/NetworkPorts" }, "Oem": { "Hpe": { "@odata.context": "/redfish/v1/$metadata#HpeNetworkAdapter.HpeNetworkAdapter", "@odata.type": "#HpeNetworkAdapter.v1_3_0.HpeNetworkAdapter", "Actions": { "#HpeNetworkAdapter.FlushConfigurationToNVM": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/Oem/Hpe/HpeNetworkAdapter.FlushConfigurationToNVM", "title": "Force a save of current network adapter configuration to non-volatile storage." }, "#NetworkAdapter.FlushConfigurationToNVM": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Actions/Oem/Hpe/NetworkAdapter.FlushConfigurationToNVM", "title": "NOTE: Deprecated, will be removed in a future release. Replaced by HpeNetworkAdapter.FlushConfigurationToNVM. Force a save of current network adapter configuration to non-volatile storage." } }, "CLPVersion": "", "Controllers": [ { "ConfigurationStatus": { "Detail": [ { "Group": 6, "SubGroup": 0, "Summary": 0 }, { "Group": 8, "SubGroup": 1, "Summary": 0 }, { "Group": 8, "SubGroup": 2, "Summary": 0 }, { "Group": 15, "SubGroup": 0, "Summary": 0 }, { "Group": 15, "SubGroup": 1, "Summary": 0 }, { "Group": 34, "SubGroup": 1, "Summary": 0 }, { "Group": 34, "SubGroup": 2, "Summary": 0 } ], "Summary": 869593167 }, "DeviceLimitationsBitmap": 0, "FunctionTypeLimits": [], "FunctionTypes": ["FibreChannel"], "MostRecentConfigurationChangeSource": "None", "RDMASupport": ["None"], "UnderlyingDataSource": "DCi" } ], "FactoryDefaultsActuationBehavior": "AtNextReboot", "PCAVersion": "P9D94-63001", "RedfishConfiguration": "Disabled" } }, "PartNumber": "P9D94A", "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Ports" }, "SKU": "SN1100Q", "SerialNumber": "MY5332214N", "Settings": { "href": "/redfish/v1/Chassis/1/NetworkAdapters/DC081000/Settings" } }, { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.etag": "W/\"E24DDEBE\"", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000", "@odata.type": "#NetworkAdapter.v1_5_0.NetworkAdapter", "Id": "DC082000", "@Redfish.Settings": { "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Settings" } }, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/NetworkAdapter.ResetSettingsToDefault", "title": "Reset network adapter configuration to factory default values." } }, "Controllers": [ { "ControllerCapabilities": { "DataCenterBridging": { "Capable": false }, "NPIV": { "MaxDeviceLogins": 256, "MaxPortLogins": 128 }, "NetworkDeviceFunctionCount": 2, "NetworkPortCount": 2 }, "FirmwarePackageVersion": "2.02.05", "Links": { "NetworkDeviceFunctions": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions/2" } ], "NetworkPorts": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts/2" } ], "Ports": [ { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports/1" }, { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports/2" } ] }, "Location": { "PartLocation": { "LocationOrdinalValue": 3, "LocationType": "Slot", "ServiceLabel": "PCI-E Slot 3" } } } ], "Description": "Device capabilities and characteristics with active configuration status", "Manufacturer": "Hewlett Packard Enterprise", "Model": "HPE SN1100Q 16Gb 2p FC HBA", "Name": "HPE SN1100Q 16Gb 2P FC HBA", "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkDeviceFunctions" }, "NetworkPorts": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/NetworkPorts" }, "Oem": { "Hpe": { "@odata.context": "/redfish/v1/$metadata#HpeNetworkAdapter.HpeNetworkAdapter", "@odata.type": "#HpeNetworkAdapter.v1_3_0.HpeNetworkAdapter", "Actions": { "#HpeNetworkAdapter.FlushConfigurationToNVM": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/Oem/Hpe/HpeNetworkAdapter.FlushConfigurationToNVM", "title": "Force a save of current network adapter configuration to non-volatile storage." }, "#NetworkAdapter.FlushConfigurationToNVM": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Actions/Oem/Hpe/NetworkAdapter.FlushConfigurationToNVM", "title": "NOTE: Deprecated, will be removed in a future release. Replaced by HpeNetworkAdapter.FlushConfigurationToNVM. Force a save of current network adapter configuration to non-volatile storage." } }, "CLPVersion": "", "Controllers": [ { "ConfigurationStatus": { "Detail": [ { "Group": 6, "SubGroup": 0, "Summary": 0 }, { "Group": 8, "SubGroup": 1, "Summary": 0 }, { "Group": 8, "SubGroup": 2, "Summary": 0 }, { "Group": 15, "SubGroup": 0, "Summary": 0 }, { "Group": 15, "SubGroup": 1, "Summary": 0 }, { "Group": 34, "SubGroup": 1, "Summary": 0 }, { "Group": 34, "SubGroup": 2, "Summary": 0 } ], "Summary": 869593167 }, "DeviceLimitationsBitmap": 0, "FunctionTypeLimits": [], "FunctionTypes": ["FibreChannel"], "MostRecentConfigurationChangeSource": "None", "RDMASupport": ["None"], "UnderlyingDataSource": "DCi" } ], "FactoryDefaultsActuationBehavior": "AtNextReboot", "PCAVersion": "P9D94-63001", "RedfishConfiguration": "Disabled" } }, "PartNumber": "P9D94A", "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Ports" }, "SKU": "SN1100Q", "SerialNumber": "MY5332214L", "Settings": { "href": "/redfish/v1/Chassis/1/NetworkAdapters/DC082000/Settings" } }, { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.type": "#NetworkAdapter.v1_9_0.NetworkAdapter", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000", "@odata.etag": "W/\"2AE16ECF\"", "@Redfish.Settings": { "@odata.type": "#Settings.v1_3_3.Settings", "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Settings" }, "SupportedApplyTimes": ["OnReset"] }, "Id": "DE07B000", "Name": "Network Adapter", "Manufacturer": "Broadcom", "Model": "BCM57412", "SKU": "10Gb 2-port SFP+ BCM57412 OCP3 Adapter", "SerialNumber": "VNM3400SXF", "PartNumber": "P26258-001", "Status": { "Health": "OK", "State": "Enabled" }, "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Ports" }, "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/NetworkDeviceFunctions" }, "Metrics": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Metrics" }, "Controllers": [ { "FirmwarePackageVersion": "229.1.123.0", "Links": { "PCIeDevices": [ { "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/DE07B000" } ] }, "ControllerCapabilities": { "NetworkPortCount": 2, "NetworkDeviceFunctionCount": 2, "DataCenterBridging": { "Capable": true }, "NPAR": { "NparCapable": true, "NparEnabled": false }, "VirtualizationOffload": { "SRIOV": { "SRIOVVEPACapable": true }, "VirtualFunction": { "DeviceMaxCount": 128, "MinAssignmentGroupSize": 8, "NetworkPortMaxCount": 128 } } }, "PCIeInterface": { "LanesInUse": 8, "MaxLanes": 8, "MaxPCIeType": "Gen3", "PCIeType": "Gen3" } } ], "LLDPEnabled": true, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DE07B000/Actions/NetworkAdapter.ResetSettingsToDefault", "@Redfish.OperationApplyTimeSupport": { "@odata.type": "#Settings.v1_3_3.OperationApplyTimeSupport", "SupportedValues": ["OnReset"] } } } }, { "@odata.context": "/redfish/v1/$metadata#NetworkAdapter.NetworkAdapter", "@odata.type": "#NetworkAdapter.v1_9_0.NetworkAdapter", "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000", "@odata.etag": "W/\"20FD634C\"", "@Redfish.Settings": { "@odata.type": "#Settings.v1_3_3.Settings", "SettingsObject": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Settings" }, "SupportedApplyTimes": ["OnReset"] }, "Id": "DE080000", "Name": "Network Adapter", "Manufacturer": "Broadcom", "Model": "BCM57412", "SKU": "10Gb 2-port SFP+ BCM57412 Adapter", "SerialNumber": "VNM40109SX", "PartNumber": "P26261-001", "Status": { "Health": "OK", "State": "Enabled" }, "Ports": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Ports" }, "NetworkDeviceFunctions": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/NetworkDeviceFunctions" }, "Metrics": { "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Metrics" }, "Controllers": [ { "FirmwarePackageVersion": "229.1.123.0", "Links": { "PCIeDevices": [ { "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/DE080000" } ] }, "ControllerCapabilities": { "NetworkPortCount": 2, "NetworkDeviceFunctionCount": 2, "DataCenterBridging": { "Capable": true }, "NPAR": { "NparCapable": true, "NparEnabled": false }, "VirtualizationOffload": { "SRIOV": { "SRIOVVEPACapable": true }, "VirtualFunction": { "DeviceMaxCount": 128, "MinAssignmentGroupSize": 8, "NetworkPortMaxCount": 128 } } }, "PCIeInterface": { "LanesInUse": 8, "MaxLanes": 8, "MaxPCIeType": "Gen3", "PCIeType": "Gen3" } } ], "LLDPEnabled": true, "Actions": { "#NetworkAdapter.ResetSettingsToDefault": { "target": "/redfish/v1/Chassis/1/NetworkAdapters/DE080000/Actions/NetworkAdapter.ResetSettingsToDefault", "@Redfish.OperationApplyTimeSupport": { "@odata.type": "#Settings.v1_3_3.OperationApplyTimeSupport", "SupportedValues": ["OnReset"] } } } } ] ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值