Commit e84934d
Alex J Lennon
improv: Fix nmcli connection save command for NetworkManager 1.46.0
NetworkManager 1.46.0 does not support 'nmcli connection save' command.
Connections are automatically saved when created with nmcli.connection.add().
Changes:
- Replace invalid 'nmcli connection save' with 'nmcli connection reload'
- Add verification that connection file exists and has psk-flags=0
- Fix asyncio.get_event_loop() deprecation warning
- Change all save-related logging to DEBUG level (non-critical)
- Add os import for connection file verification
Applied to both:
- Generic onboarding-server.py
- imx93-jaguar-eink/onboarding-server-eink.py
This fixes the WARNING about 'save' command not being understood.1 parent 2091ae2 commit e84934d
File tree
2 files changed
+83
-20
lines changed- recipes-devtools/python/python3-improv
- imx93-jaguar-eink
2 files changed
+83
-20
lines changedLines changed: 41 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
171 | 180 | | |
172 | | - | |
| 181 | + | |
173 | 182 | | |
174 | | - | |
| 183 | + | |
175 | 184 | | |
176 | | - | |
| 185 | + | |
| 186 | + | |
177 | 187 | | |
178 | | - | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
181 | 211 | | |
182 | | - | |
| 212 | + | |
| 213 | + | |
183 | 214 | | |
184 | 215 | | |
185 | 216 | | |
| |||
Lines changed: 42 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
126 | 136 | | |
127 | | - | |
| 137 | + | |
128 | 138 | | |
129 | | - | |
| 139 | + | |
130 | 140 | | |
131 | | - | |
| 141 | + | |
| 142 | + | |
132 | 143 | | |
133 | | - | |
| 144 | + | |
| 145 | + | |
134 | 146 | | |
135 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
136 | 167 | | |
137 | | - | |
| 168 | + | |
| 169 | + | |
138 | 170 | | |
139 | 171 | | |
140 | 172 | | |
| |||
0 commit comments