Skip to content

Commit 5ba33b6

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xcp/net/ifrename/logic.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,11 @@ def rename(static_rules, cur_state, last_state, old_state):
397397
398398
Raises
399399
------
400-
StaticRuleError: If a static rule's kname is not None, tname does not start
401-
with 'eth', or if there are duplicate eth names or
402-
MAC addresses in static rules.
400+
StaticRuleError: If any of the following conditions are met in static rules:
401+
- kname is not None
402+
- tname does not start with 'eth'
403+
- there are duplicate eth names
404+
- there are duplicate MAC addresses
403405
CurrentStateError: If the current state contains invalid entries.
404406
LastStateError: If the last state contains invalid entries.
405407
TypeError: If any of the input lists contain objects that are not MACPCI instances.

0 commit comments

Comments
 (0)