diff options
author | Jernej Jakob <jernej.jakob@gmail.com> | 2020-07-19 21:21:52 +0200 |
---|---|---|
committer | Jernej Jakob <jernej.jakob@gmail.com> | 2020-07-19 21:21:52 +0200 |
commit | fabd8b4bbb150b237121cd3eeffa8026903a159e (patch) | |
tree | de5763bb2d447bec5bfe542c52b3ae06cd53339c /src/conf_mode/http-api.py | |
parent | dadb09fd14046720e7898c3cbad8c5def408db9d (diff) | |
download | vyos-1x-fabd8b4bbb150b237121cd3eeffa8026903a159e.tar.gz vyos-1x-fabd8b4bbb150b237121cd3eeffa8026903a159e.zip |
interface: T2519: add broadcast address when adding IPv4 addresses
This adds the last IP of the subnet being added as the broadcast address.
Example: adding 192.0.2.1/24 would yield:
inet 192.0.2.1/24 brd 192.0.2.255 scope global dum0
Without this the broadcast address would be missing.
Addidionally join two is_ipv4 calls into one.
Diffstat (limited to 'src/conf_mode/http-api.py')
0 files changed, 0 insertions, 0 deletions