Also consider loss of IPv6 default route to be fatal

Bug: 27962810
Change-Id: I735d71ddc71da701eebbb9969f6e1cbffd7e1a1c
This commit is contained in:
Erik Kline
2016-04-13 19:41:43 +09:00
parent b020279952
commit 0a0e1dcdc6

View File

@@ -536,6 +536,16 @@ public class IpManager extends StateMachine {
delta = ProvisioningChange.LOST_PROVISIONING;
}
// Additionally:
//
// If the previous link properties had a global IPv6 address and an
// IPv6 default route then also consider the loss of that default route
// to be a loss of provisioning. See b/27962810.
if (oldLp.hasGlobalIPv6Address() && oldLp.hasIPv6DefaultRoute() &&
!newLp.hasIPv6DefaultRoute()) {
delta = ProvisioningChange.LOST_PROVISIONING;
}
return delta;
}