Skip to content

Conversation

@mzagrabe
Copy link
Contributor

When a container has a mix of addresses (hosts) and other subnets or containers it should display the block view if any of its descendants are non-addresses.

Don't just evaluate the first object of the array - this leads to issues
where a container has static addresses at the top of the addressing
block (first entry of the array) and the whole block is rendered as though
they were hosts (addresses).

Instead, default to 'address' and see if any of the objects are not
addresses. If so, then set the type to 'block' and break the loop.
Regex anchors bind tighter than the alternation character (|). Thus we
need to put our alternation expression in a (non-capturing) parenthesis.
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