HIGUCHI Yuta
Committed by Gerrit Code Review

Workaround for ONOS-1208

Change-Id: I5bd2a28cfdf799971423338879f21917842cdc7e
...@@ -899,6 +899,13 @@ public class GossipLinkStore ...@@ -899,6 +899,13 @@ public class GossipLinkStore
899 ProviderId providerId = linkInjectedEvent.providerId(); 899 ProviderId providerId = linkInjectedEvent.providerId();
900 LinkDescription linkDescription = linkInjectedEvent.linkDescription(); 900 LinkDescription linkDescription = linkInjectedEvent.linkDescription();
901 901
902 + final DeviceId deviceId = linkDescription.dst().deviceId();
903 + if (!deviceClockService.isTimestampAvailable(deviceId)) {
904 + // workaround for ONOS-1208
905 + log.warn("Not ready to accept update. Dropping {}", linkDescription);
906 + return;
907 + }
908 +
902 try { 909 try {
903 createOrUpdateLink(providerId, linkDescription); 910 createOrUpdateLink(providerId, linkDescription);
904 } catch (Exception e) { 911 } catch (Exception e) {
......