Committed by
Gerrit Code Review
Workaround for ONOS-1208
Change-Id: I5bd2a28cfdf799971423338879f21917842cdc7e
Showing
1 changed file
with
7 additions
and
0 deletions
| ... | @@ -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) { | ... | ... |
-
Please register or login to post a comment