Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-22] Unity ethernet port modification support
Support modifying the speed and mtu of the ethernet ports on unity system
- Loading branch information
1 parent
47f4b56
commit 4d14573
Showing
10 changed files
with
467 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"indices": [ | ||
{ | ||
"url": "/api/types/ethernetPort?compact=True&fields=attributes.description,attributes.displayValue,attributes.initialValue,attributes.name,attributes.type,description,documentation,name,type", | ||
"response": "type.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spa_eth3?compact=True&fields=bond,cascadeNames,connectorType,health,id,instanceId,isLinkUp,isRDMACapable,isRSSCapable,linuxDeviceName,macAddress,mtu,name,needsReplacement,operationalStatus,parent,parentIOModule,parentStorageProcessor,portNumber,requestedMtu,requestedSpeed,sfpSupportedProtocols,sfpSupportedSpeeds,shortName,speed,storageProcessor,supportedMtus,supportedSpeeds", | ||
"response": "spa_eth3.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spb_eth3?compact=True&fields=bond,cascadeNames,connectorType,health,id,instanceId,isLinkUp,isRDMACapable,isRSSCapable,linuxDeviceName,macAddress,mtu,name,needsReplacement,operationalStatus,parent,parentIOModule,parentStorageProcessor,portNumber,requestedMtu,requestedSpeed,sfpSupportedProtocols,sfpSupportedSpeeds,shortName,speed,storageProcessor,supportedMtus,supportedSpeeds", | ||
"response": "spb_eth3.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spa_eth3/action/modify?compact=True", | ||
"body": { | ||
"mtuSize": 9000 | ||
}, | ||
"response": "success.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spb_eth3/action/modify?compact=True", | ||
"body": { | ||
"mtuSize": 9000 | ||
}, | ||
"response": "success.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spb_eth3/action/modify?compact=True", | ||
"body": { | ||
"speed": 100 | ||
}, | ||
"response": "success.json" | ||
}, | ||
{ | ||
"url": "/api/instances/ethernetPort/spa_eth3/action/modify?compact=True", | ||
"body": { | ||
"speed": 100 | ||
}, | ||
"response": "success.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"content": { | ||
"macAddress": "00:60:16:5C:07:0A", | ||
"isRDMACapable": false, | ||
"parentStorageProcessor": { | ||
"id": "spa" | ||
}, | ||
"instanceId": "root/emc:EMC_UEM_EthernetPortLeaf%Tag=03:00:00:01", | ||
"portNumber": 3, | ||
"cascadeNames": [ | ||
"Ethernet Port 3", | ||
"SP A" | ||
], | ||
"requestedMtu": 1500, | ||
"mtu": 1500, | ||
"connectorType": 1, | ||
"id": "spa_eth3", | ||
"supportedSpeeds": [ | ||
1000, | ||
10000, | ||
100, | ||
0 | ||
], | ||
"supportedMtus": [ | ||
1500, | ||
9000 | ||
], | ||
"storageProcessor": { | ||
"id": "spa" | ||
}, | ||
"health": { | ||
"descriptionIds": [ | ||
"ALRT_PORT_LINK_DOWN_NOT_IN_USE" | ||
], | ||
"descriptions": [ | ||
"The port link is down, but not in use. No action is required." | ||
], | ||
"value": 5 | ||
}, | ||
"parent": { | ||
"resource": "storageProcessor", | ||
"id": "spa" | ||
}, | ||
"needsReplacement": false, | ||
"sfpSupportedSpeeds": [], | ||
"sfpSupportedProtocols": [], | ||
"operationalStatus": [ | ||
2, | ||
32785 | ||
], | ||
"shortName": "Ethernet Port 3", | ||
"requestedSpeed": 0, | ||
"isRSSCapable": false, | ||
"name": "SP A Ethernet Port 3", | ||
"linuxDeviceName": "eth3", | ||
"isLinkUp": false, | ||
"bond": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"content": { | ||
"macAddress": "00:60:16:5C:05:FE", | ||
"isRDMACapable": false, | ||
"parentStorageProcessor": { | ||
"id": "spb" | ||
}, | ||
"instanceId": "root/emc:EMC_UEM_EthernetPortLeaf%Tag=03:00:01:01", | ||
"portNumber": 3, | ||
"cascadeNames": [ | ||
"Ethernet Port 3", | ||
"SP B" | ||
], | ||
"requestedMtu": 1500, | ||
"mtu": 1500, | ||
"connectorType": 1, | ||
"id": "spb_eth3", | ||
"supportedSpeeds": [ | ||
1000, | ||
10000, | ||
100, | ||
0 | ||
], | ||
"supportedMtus": [ | ||
1500, | ||
9000 | ||
], | ||
"storageProcessor": { | ||
"id": "spb" | ||
}, | ||
"health": { | ||
"descriptionIds": [ | ||
"ALRT_PORT_LINK_DOWN_NOT_IN_USE" | ||
], | ||
"descriptions": [ | ||
"The port link is down, but not in use. No action is required." | ||
], | ||
"value": 5 | ||
}, | ||
"parent": { | ||
"resource": "storageProcessor", | ||
"id": "spb" | ||
}, | ||
"needsReplacement": false, | ||
"sfpSupportedSpeeds": [], | ||
"sfpSupportedProtocols": [], | ||
"operationalStatus": [ | ||
2, | ||
32785 | ||
], | ||
"shortName": "Ethernet Port 3", | ||
"requestedSpeed": 0, | ||
"isRSSCapable": false, | ||
"name": "SP B Ethernet Port 3", | ||
"linuxDeviceName": "eth3", | ||
"isLinkUp": false, | ||
"bond": false | ||
} | ||
} |
Empty file.
Oops, something went wrong.