Skip to content

Commit 7f74f94

Browse files
Update xcp/net/ifrename/logic.py
Co-authored-by: Copilot <[email protected]>
1 parent b297949 commit 7f74f94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xcp/net/ifrename/logic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,10 @@ def rename(static_rules, cur_state, last_state, old_state):
400400
401401
Raises
402402
------
403-
StaticRuleError, CurrentStateError, LastStateError, TypeError
403+
- StaticRuleError: If a static rule's kname is not None, tname does not start with 'eth', or if there are duplicate eth names or MAC addresses in static rules.
404+
- CurrentStateError: If the current state contains invalid entries.
405+
- LastStateError: If the last state contains invalid entries.
406+
- TypeError: If any of the input lists contain objects that are not MACPCI instances.
404407
"""
405408

406409
if len(static_rules):

0 commit comments

Comments
 (0)