Skip to content

Commit

Permalink
prefix check lir/sub
Browse files Browse the repository at this point in the history
  • Loading branch information
Igoranze committed Dec 3, 2024
1 parent 34c6437 commit 894b541
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ function IpNetwork({

const netMaskInt = parseInt(netmask, 10);
const usedPrefixMin =
prefixMin ?? netMaskInt < 32 ? netMaskInt + 1 : netMaskInt;
prefixMin ??
(netMaskInt < 32 && name === 'ip_sub_prefix'
? netMaskInt + 1
: netMaskInt);

return (
<section {...filterDOMProps(props)}>
Expand Down

0 comments on commit 894b541

Please sign in to comment.