Skip to content

refactor: Unify set_logical_router with _set_reference pattern#618

Draft
alperenkose wants to merge 1 commit into
PaloAltoNetworks:feat/are-lr-bindingsfrom
alperenkose:feat/are-lr-bindings-refactor
Draft

refactor: Unify set_logical_router with _set_reference pattern#618
alperenkose wants to merge 1 commit into
PaloAltoNetworks:feat/are-lr-bindingsfrom
alperenkose:feat/are-lr-bindings-refactor

Conversation

@alperenkose
Copy link
Copy Markdown
Collaborator

An effort to make set_reference to handle nested references and make a single interface for setting references.

Add parent_type/parent_name support to _set_reference for nested references (LogicalRouter -> Vrf -> interface). Switch _update_reference_in_objects to identity-based skip so non-unique child names (e.g. "default" VRF across LRs) are handled correctly.

Add parent_type/parent_name support to _set_reference for nested
references (LogicalRouter -> Vrf -> interface). Switch
_update_reference_in_objects to identity-based skip so non-unique
child names (e.g. "default" VRF across LRs) are handled correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant