]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Be smarter when figuring out broadcast address
authorAnte Karamatic <ante.karamatic@canonical.com>
Mon, 4 Feb 2013 13:02:25 +0000 (14:02 +0100)
committerAnte Karamatic <ante.karamatic@canonical.com>
Tue, 5 Feb 2013 15:29:00 +0000 (16:29 +0100)
commit962aca526c0acdec249e84fe972f059098e1196f
treee48a3fb1b9e9b683d1e729fea062f4f96d9be6a1
parent1b7565b83ca8ef9761cdfb1eed1e9eb9498ea340
Be smarter when figuring out broadcast address

In most cases, broadcast is set when IP is set, but sometimes
it can be ommitted. In those cases we should figure it out based
on CIDR, and not assume it.

Change-Id: Ia8c07898ddf0eb19f5d552a304d8f38915fc3560
Fixes: bug #1090621
quantum/agent/linux/ip_lib.py
quantum/tests/unit/test_linux_ip_lib.py