Skip to content

Commit

Permalink
Fixed the backup redirection config in the start_network.py (#6755)
Browse files Browse the repository at this point in the history
Co-authored-by: msftsettiy <settiy@microsoft.com>
  • Loading branch information
msftsettiy and settiy-ms authored Jan 14, 2025
1 parent ac9c4b7 commit 80b1a21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/start_network.py
Original file line number Diff line number Diff line change
@@ -35,7 +35,11 @@ def run(args):
LOG.warning("Redirection with node-by-role is enabled")
interface.redirections = infra.interfaces.RedirectionConfig(
to_primary=infra.interfaces.NodeByRoleResolver(),
to_backup=infra.interfaces.NodeByRoleResolver(),
to_backup=infra.interfaces.NodeByRoleResolver(
target=infra.interfaces.TargetRole(
infra.interfaces.NodeRole.backup
)
),
)
elif args.redirection_kind == "static-address":
LOG.warning("Redirection with static-address is enabled")

0 comments on commit 80b1a21

Please sign in to comment.