Skip to content

Commit 9c639ff

Browse files
committed
Add enroll server workflow
1 parent 294d688 commit 9c639ff

35 files changed

+5453
-0
lines changed

.typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extend-exclude = [
44
"venv",
55
"assets",
66
"schema/argo-workflows.json",
7+
"python/understack-workflows/tests/json_samples/",
78
]
89

910
[default]
@@ -14,3 +15,5 @@ extend-ignore-identifiers-re = [
1415
[default.extend-words]
1516
# Don't correct "HPE"
1617
HPE = "HPE"
18+
fo = "fo"
19+
sme = "sme"

python/understack-workflows/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ undersync-switch = "understack_workflows.main.undersync_switch:main"
5656
undersync-device = "understack_workflows.main.undersync_device:main"
5757
nautobot-update-cf = "understack_workflows.main.nautobot_update_cf:main"
5858
get-standard-bmc-creds = "understack_workflows.main.get_standard_bmc_creds:main"
59+
enroll-server = "understack_workflows.main.enroll_server:main"
5960

6061
[tool.setuptools.packages.find]
6162
# avoid packaging up our tests
@@ -107,3 +108,8 @@ force-single-line = true
107108
[tool.ruff.lint.pydocstyle]
108109
# enable the google doc style rules by default
109110
convention = "google"
111+
112+
[tool.ruff.lint.per-file-ignores]
113+
"understack_workflows/nautobot_device.py" = ["UP031"]
114+
"tests/test_nautobot_event_parser.py" = ["E501"]
115+
"tests/test_bmc_credentials.py" = ["B017"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",
3+
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/EthernetInterfaces/NIC.1",
4+
"@odata.type": "#EthernetInterface.v1_10_0.EthernetInterface",
5+
"AutoNeg": true,
6+
"Description": "Management Network Interface",
7+
"EthernetInterfaceType": "Physical",
8+
"FQDN": "",
9+
"FullDuplex": true,
10+
"HostName": "idrac-33GSW04",
11+
"IPv4Addresses": [
12+
{
13+
"Address": "10.46.96.156",
14+
"AddressOrigin": "Static",
15+
"Gateway": "10.46.96.129",
16+
"SubnetMask": "255.255.255.192"
17+
}
18+
],
19+
20+
"IPv6AddressPolicyTable": [],
21+
22+
"IPv6Addresses": [
23+
{
24+
"Address": "::",
25+
"AddressOrigin": null,
26+
"AddressState": "Preferred",
27+
"PrefixLength": 64
28+
},
29+
{
30+
"Address": "::",
31+
"AddressOrigin": null,
32+
"AddressState": "Preferred",
33+
"PrefixLength": 64
34+
},
35+
{
36+
"Address": "::",
37+
"AddressOrigin": null,
38+
"AddressState": null,
39+
"PrefixLength": 64
40+
},
41+
{
42+
"Address": "::",
43+
"AddressOrigin": null,
44+
"AddressState": null,
45+
"PrefixLength": 64
46+
},
47+
{
48+
"Address": "::",
49+
"AddressOrigin": null,
50+
"AddressState": null,
51+
"PrefixLength": 64
52+
},
53+
{
54+
"Address": "::",
55+
"AddressOrigin": null,
56+
"AddressState": null,
57+
"PrefixLength": 64
58+
},
59+
{
60+
"Address": "::",
61+
"AddressOrigin": null,
62+
"AddressState": null,
63+
"PrefixLength": 64
64+
},
65+
{
66+
"Address": "::",
67+
"AddressOrigin": null,
68+
"AddressState": null,
69+
"PrefixLength": 64
70+
},
71+
{
72+
"Address": "::",
73+
"AddressOrigin": null,
74+
"AddressState": null,
75+
"PrefixLength": 64
76+
},
77+
{
78+
"Address": "::",
79+
"AddressOrigin": null,
80+
"AddressState": null,
81+
"PrefixLength": 64
82+
},
83+
{
84+
"Address": "::",
85+
"AddressOrigin": null,
86+
"AddressState": null,
87+
"PrefixLength": 64
88+
},
89+
{
90+
"Address": "::",
91+
"AddressOrigin": null,
92+
"AddressState": null,
93+
"PrefixLength": 64
94+
},
95+
{
96+
"Address": "::",
97+
"AddressOrigin": null,
98+
"AddressState": null,
99+
"PrefixLength": 64
100+
},
101+
{
102+
"Address": "::",
103+
"AddressOrigin": null,
104+
"AddressState": null,
105+
"PrefixLength": 64
106+
},
107+
{
108+
"Address": "::",
109+
"AddressOrigin": null,
110+
"AddressState": null,
111+
"PrefixLength": 64
112+
},
113+
{
114+
"Address": "fe80::feaa:ffeb:8f73:7e9f",
115+
"AddressOrigin": null,
116+
"AddressState": "Preferred",
117+
"PrefixLength": 64
118+
}
119+
],
120+
121+
"IPv6DefaultGateway": "::",
122+
"IPv6StaticAddresses": [
123+
{
124+
"Address": "::",
125+
"PrefixLength": 64
126+
}
127+
],
128+
129+
"Id": "NIC.1",
130+
"InterfaceEnabled": true,
131+
"Links": {
132+
"Chassis": {
133+
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
134+
}
135+
},
136+
"MACAddress": "a8:3c:a5:35:43:86",
137+
"MTUSize": 1500,
138+
"MaxIPv6StaticAddresses": 1,
139+
"Name": "Manager Ethernet Interface",
140+
"NameServers": [
141+
"0.0.0.0",
142+
"0.0.0.0",
143+
"::",
144+
"::"
145+
],
146+
147+
"PermanentMACAddress": "a8:3c:a5:35:43:86",
148+
"SpeedMbps": 1000,
149+
"Status": {
150+
"Health": "OK",
151+
"State": "Enabled"
152+
},
153+
"VLAN": {
154+
"VLANEnable": false,
155+
"VLANId": 1
156+
}
157+
}

0 commit comments

Comments
 (0)