File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
22
```
2
23
import json
3
24
import pandas as pd
@@ -130,8 +151,7 @@ html = f"""
130
151
</div>
131
152
</body>
132
153
</html>
133
- """
134
-
154
+ ```
135
155
# Save the HTML string to a file
136
156
with open("reports/report-{filename}.html".format(filename = date_time), 'w') as f:
137
157
f.write(html)
You can’t perform that action at this time.
0 commit comments