Skip to content

Commit 6ec62d0

Browse files
authored
Update howto-convert-cable-validation-html.md
Update language and headings.
1 parent 377d3a2 commit 6ec62d0

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

articles/operator-nexus/howto-convert-cable-validation-html.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
---
2+
title: How to Convert Network Fabric Cable Validation Report to HTML
3+
description: Learn how to convert Nexus Network Fabric Cable Validation Report to HTML.
4+
author: bpinto
5+
ms.author: bpinto
6+
ms.service: azure-operator-nexus
7+
ms.topic: how-to #Required; leave this attribute/value as-is
8+
ms.date: 12/10/2024
9+
10+
#CustomerIntent: As a < type of user >, I want < what? > so that < why? >.
11+
---
12+
# How to Convert Network Fabric Cable Validation Report to HTML
13+
14+
This article explains how to convert a Nexus Network Fabric Cable Validation Report from JSON output to HTML.
15+
16+
## Prerequisites
17+
18+
- Requires Modules: `json pandas as pd`
19+
20+
## Python Script for Cable Validation JSON to html conversion
21+
122
```
223
import json
324
import pandas as pd
@@ -130,8 +151,7 @@ html = f"""
130151
</div>
131152
</body>
132153
</html>
133-
"""
134-
154+
```
135155
# Save the HTML string to a file
136156
with open("reports/report-{filename}.html".format(filename = date_time), 'w') as f:
137157
f.write(html)

0 commit comments

Comments
 (0)