render icon indicating copy to clipboard operation
render copied to clipboard

feat(customfunc/cidr): Add cidrHostEnd custom function

Open realnedsanders opened this issue 3 years ago • 4 comments

Add cidrHostEnd custom function to get addresses starting from the end of the subnet and working backwards.

issue #37

This change adds a new custom function to the program which enables users to get addresses similar to the existing cidrHost, except it starts from the end of the addressible range and works backwards.

  • Tags: cidrHostEnd cidr custom func subnet

realnedsanders avatar Jul 23 '22 21:07 realnedsanders

@bartoszj

aesca1er avatar Jul 27 '22 03:07 aesca1er

As discussed in #37 , we can use negative numbers in existing cidrHost function.

  • -1 returns broadcast address
  • -2 returns last available IP address, and so on In my opinion, this new function is not needed. @aescaler-a0d could you provide a use case for that?

bartoszj avatar Jul 27 '22 05:07 bartoszj

In that case, you are probably correct.

The negative numbers for cidrHost should be documented, as they are currently not.

On Wed, Jul 27, 2022, 1:09 AM Bartosz Janda @.***> wrote:

As discussed in #37 https://github.com/VirtusLab/render/issues/37 , we can use negative numbers in existing cidrHost function.

  • -1 returns broadcast address
  • -2 returns last available IP address, and so on In my opinion, this new function is not needed. @aescaler-a0d https://github.com/aescaler-a0d could you provide a use case for that?

— Reply to this email directly, view it on GitHub https://github.com/VirtusLab/render/pull/38#issuecomment-1196272004, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNEDJHZJNRI5KJ2ULEKWPTVWDAAJANCNFSM54OST54Q . You are receiving this because you were mentioned.Message ID: @.***>

realnedsanders avatar Jul 27 '22 12:07 realnedsanders

Marked as stale due to inactivity. Will be closed in 30 days.

github-actions[bot] avatar Sep 26 '22 02:09 github-actions[bot]

Closed due to inactivity for 90 days.

github-actions[bot] avatar Oct 27 '22 02:10 github-actions[bot]