|
1 | 1 | ---
|
2 | 2 | title: Network Fabric read write commands
|
3 | 3 | description: Learn how to use the Nexus Fabric Read Write commands to modify device configurations without accessing the Network Fabric device.
|
4 |
| -author: HollyCl |
5 |
| -ms.author: HollyCl |
| 4 | +author: sushantjrao |
| 5 | +ms.author: sushrao |
6 | 6 | ms.service: azure-operator-nexus
|
7 | 7 | ms.custom: devx-track-azurecli
|
8 | 8 | ms.topic: concept-article
|
@@ -150,10 +150,10 @@ The Status should indicate whether the API succeeded or failed.
|
150 | 150 | },
|
151 | 151 | "systemData": {
|
152 | 152 | "createdAt": "2024-XX-XXT13:41:13.8558264Z",
|
153 |
| - "createdBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 153 | + "createdBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
154 | 154 | "createdByType": "Application",
|
155 | 155 | "lastModifiedAt": "2024-XX-XXT10:44:21.3736554Z",
|
156 |
| - "lastModifiedBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 156 | + "lastModifiedBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
157 | 157 | "lastModifiedByType": "Application"
|
158 | 158 | },
|
159 | 159 | "type": "microsoft.managednetworkfabric/networkdevices"
|
@@ -258,10 +258,10 @@ Expected output:
|
258 | 258 | },
|
259 | 259 | "systemData": {
|
260 | 260 | "createdAt": "2024-XX-XXT13:41:13.8558264Z",
|
261 |
| - "createdBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 261 | + "createdBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
262 | 262 | "createdByType": "Application",
|
263 | 263 | "lastModifiedAt": "2024-XX-XXT10:44:21.3736554Z",
|
264 |
| - "lastModifiedBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 264 | + "lastModifiedBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
265 | 265 | "lastModifiedByType": "Application"
|
266 | 266 | },
|
267 | 267 | "type": "microsoft.managednetworkfabric/networkdevices"
|
@@ -360,10 +360,10 @@ Expected output:
|
360 | 360 | },
|
361 | 361 | "systemData": {
|
362 | 362 | "createdAt": "2024-XX-XXT13:41:13.8558264Z",
|
363 |
| - "createdBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 363 | + "createdBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
364 | 364 | "createdByType": "Application",
|
365 | 365 | "lastModifiedAt": "2024-XX-XXT10:44:21.3736554Z",
|
366 |
| - "lastModifiedBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 366 | + "lastModifiedBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
367 | 367 | "lastModifiedByType": "Application"
|
368 | 368 | },
|
369 | 369 |
|
@@ -468,10 +468,10 @@ Expected output:
|
468 | 468 | },
|
469 | 469 | "systemData": {
|
470 | 470 | "createdAt": "2024-XX-XXT13:41:13.8558264Z",
|
471 |
| - "createdBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 471 | + "createdBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
472 | 472 | "createdByType": "Application",
|
473 | 473 | "lastModifiedAt": "2024-XX-XXT10:44:21.3736554Z",
|
474 |
| - "lastModifiedBy": "cbe7d642-9e0a-475d-b2bf-2cb0a9825e13", |
| 474 | + "lastModifiedBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
475 | 475 | "lastModifiedByType": "Application"
|
476 | 476 | },
|
477 | 477 | "type": "microsoft.managednetworkfabric/networkdevices"
|
@@ -509,6 +509,48 @@ The RW command feature is open and there are no restrictions on it. However, pro
|
509 | 509 | - It's crucial to thoroughly review the Route Policy configuration before implementation, as any oversight could potentially compromise the existing Route Policy setup.
|
510 | 510 | - Changing the router BGP configuration and shutting it down brings down the stability of the device.
|
511 | 511 |
|
| 512 | +## Retreive runRW configuration |
| 513 | + |
| 514 | +To retrieve the last successfully applied runRW configuration for a given device, perform a GET operation on the device resource. |
| 515 | + |
| 516 | +```rest |
| 517 | +az rest -m get -u /subscriptions/<example-subscription-id>/resourceGroups/<example-rg>/providers/Microsoft.ManagedNetworkFabric/NetworkDevices/<example-devicename>?api-version=2024-06-15-preview |
| 518 | +``` |
| 519 | + |
| 520 | +Expected output |
| 521 | + |
| 522 | +``` |
| 523 | +{ |
| 524 | + "id": "/subscriptions/xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkDevices/example-device-name", |
| 525 | + "location": "uaenorth", |
| 526 | + "name": "example-device-name", |
| 527 | + "properties": { |
| 528 | + "administrativeState": "Enabled", |
| 529 | + "configurationState": "DeferredControl", |
| 530 | + "hostName": "AR-CE1", |
| 531 | + "networkDeviceRole": "CE", |
| 532 | + "networkDeviceSku": "DefaultSku", |
| 533 | + "networkRackId": "/subscriptions/xxxxxx-xxxx-xxxx-xxxxxx/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkRacks/example-rack-name", |
| 534 | + "provisioningState": "Succeeded", |
| 535 | +"rwDeviceConfig": "interface Ethernet 1/1\n description RW-test1", |
| 536 | + "serialNumber": "Arista;CCS-720DT-XXXX;11.07;WTW2248XXXX", |
| 537 | + "version": "4.0.0" |
| 538 | + }, |
| 539 | + "systemData": { |
| 540 | + "createdAt": "2025-02-23T04:57:13.6113277Z", |
| 541 | + "createdBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
| 542 | + "createdByType": "Application", |
| 543 | + "lastModifiedAt": "2025-02-27T08:27:46.3818706Z", |
| 544 | + "lastModifiedBy": "xxxxxxxx-xxxx-xxxx-xxxxxx", |
| 545 | + "lastModifiedByType": "Application" |
| 546 | + }, |
| 547 | + "type": "microsoft.managednetworkfabric/networkdevices" |
| 548 | +} |
| 549 | +``` |
| 550 | + |
| 551 | +> [!Note] |
| 552 | +> RW configurations do not persist across upgrades. After an upgrade of Network Fabric, the rwDeviceConfig property will be empty unless the user manually reapplies the RW configuration. |
| 553 | +
|
512 | 554 | ## Limitations
|
513 | 555 |
|
514 | 556 | **Common Questions:**
|
|
0 commit comments