VirtusLab / render

Universal data-driven template for generating textual output, as a static binary and a library
Apache License 2.0
141 stars 24 forks source link

feat(customfunc/cidr): Add cidrHostEnd custom function #38

Closed realnedsanders closed 2 years ago

realnedsanders commented 2 years ago

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.

aesca1er commented 2 years ago

@bartoszj

bartoszj commented 2 years ago

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

realnedsanders commented 2 years ago

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: @.***>

github-actions[bot] commented 2 years ago

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

github-actions[bot] commented 2 years ago

Closed due to inactivity for 90 days.