Skip to content

Commit c7feded

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xcp/net/ifrename/logic.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,11 @@ def rename(static_rules, cur_state, last_state, old_state):
401401
402402
Raises
403403
------
404-
StaticRuleError
405-
If a static rule has a kernel name, a tname not starting with 'eth', duplicate eth names, or duplicate MACs.
404+
Raised if any of the following conditions are met:
405+
- A static rule has a kernel name.
406+
- A static rule has a tname not starting with 'eth'.
407+
- Duplicate eth names are present in static rules.
408+
- Duplicate MAC addresses are present in static rules.
406409
CurrentStateError
407410
If the current state contains invalid entries.
408411
LastStateError

0 commit comments

Comments
 (0)