Fixing log messages
Fixing onos-config glitch Change-Id: I15a1d7bc0a4fc50773f041328958bf02e8e4cb0f
Showing
3 changed files
with
15 additions
and
15 deletions
... | @@ -192,7 +192,7 @@ public class ReactiveForwarding { | ... | @@ -192,7 +192,7 @@ public class ReactiveForwarding { |
192 | readComponentConfiguration(context); | 192 | readComponentConfiguration(context); |
193 | requestIntercepts(); | 193 | requestIntercepts(); |
194 | 194 | ||
195 | - log.info("Started with Application ID {}", appId.id()); | 195 | + log.info("Started", appId.id()); |
196 | } | 196 | } |
197 | 197 | ||
198 | @Deactivate | 198 | @Deactivate |
... | @@ -213,7 +213,7 @@ public class ReactiveForwarding { | ... | @@ -213,7 +213,7 @@ public class ReactiveForwarding { |
213 | } | 213 | } |
214 | 214 | ||
215 | /** | 215 | /** |
216 | - * Request packet in via PacketService. | 216 | + * Request packet in via packet service. |
217 | */ | 217 | */ |
218 | private void requestIntercepts() { | 218 | private void requestIntercepts() { |
219 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); | 219 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); |
... | @@ -231,7 +231,7 @@ public class ReactiveForwarding { | ... | @@ -231,7 +231,7 @@ public class ReactiveForwarding { |
231 | } | 231 | } |
232 | 232 | ||
233 | /** | 233 | /** |
234 | - * Cancel request for packet in via PacketService. | 234 | + * Cancel request for packet in via packet service. |
235 | */ | 235 | */ |
236 | private void withdrawIntercepts() { | 236 | private void withdrawIntercepts() { |
237 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); | 237 | TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); |
... | @@ -353,7 +353,7 @@ public class ReactiveForwarding { | ... | @@ -353,7 +353,7 @@ public class ReactiveForwarding { |
353 | if (ignoreIpv4McastPackets != ignoreIpv4McastPacketsEnabled) { | 353 | if (ignoreIpv4McastPackets != ignoreIpv4McastPacketsEnabled) { |
354 | ignoreIpv4McastPackets = ignoreIpv4McastPacketsEnabled; | 354 | ignoreIpv4McastPackets = ignoreIpv4McastPacketsEnabled; |
355 | log.info("Configured. Ignore IPv4 multicast packets is {}", | 355 | log.info("Configured. Ignore IPv4 multicast packets is {}", |
356 | - ignoreIpv4McastPackets ? "enabled" : "disabled"); | 356 | + ignoreIpv4McastPackets ? "enabled" : "disabled"); |
357 | } | 357 | } |
358 | } | 358 | } |
359 | 359 | ||
... | @@ -691,12 +691,12 @@ public class ReactiveForwarding { | ... | @@ -691,12 +691,12 @@ public class ReactiveForwarding { |
691 | } | 691 | } |
692 | 692 | ||
693 | private void fixBlackhole(ConnectPoint egress) { | 693 | private void fixBlackhole(ConnectPoint egress) { |
694 | - Set<FlowEntry> rules = getFlowRulesFrom(egress); | 694 | + Set<FlowEntry> rules = getFlowRulesFrom(egress); |
695 | Set<SrcDstPair> pairs = findSrcDstPairs(rules); | 695 | Set<SrcDstPair> pairs = findSrcDstPairs(rules); |
696 | 696 | ||
697 | Map<DeviceId, Set<Path>> srcPaths = new HashMap<>(); | 697 | Map<DeviceId, Set<Path>> srcPaths = new HashMap<>(); |
698 | 698 | ||
699 | - for (SrcDstPair sd: pairs) { | 699 | + for (SrcDstPair sd : pairs) { |
700 | // get the edge deviceID for the src host | 700 | // get the edge deviceID for the src host |
701 | DeviceId srcId = hostService.getHost(HostId.hostId(sd.src)).location().deviceId(); | 701 | DeviceId srcId = hostService.getHost(HostId.hostId(sd.src)).location().deviceId(); |
702 | DeviceId dstId = hostService.getHost(HostId.hostId(sd.dst)).location().deviceId(); | 702 | DeviceId dstId = hostService.getHost(HostId.hostId(sd.dst)).location().deviceId(); |
... | @@ -715,20 +715,20 @@ public class ReactiveForwarding { | ... | @@ -715,20 +715,20 @@ public class ReactiveForwarding { |
715 | 715 | ||
716 | // Backtracks from link down event to remove flows that lead to blackhole | 716 | // Backtracks from link down event to remove flows that lead to blackhole |
717 | private void backTrackBadNodes(Set<Path> shortestPaths, DeviceId dstId, SrcDstPair sd) { | 717 | private void backTrackBadNodes(Set<Path> shortestPaths, DeviceId dstId, SrcDstPair sd) { |
718 | - for (Path p: shortestPaths) { | 718 | + for (Path p : shortestPaths) { |
719 | List<Link> pathLinks = p.links(); | 719 | List<Link> pathLinks = p.links(); |
720 | for (int i = 0; i < pathLinks.size(); i = i + 1) { | 720 | for (int i = 0; i < pathLinks.size(); i = i + 1) { |
721 | Link curLink = pathLinks.get(i); | 721 | Link curLink = pathLinks.get(i); |
722 | DeviceId curDevice = curLink.src().deviceId(); | 722 | DeviceId curDevice = curLink.src().deviceId(); |
723 | - log.trace("Currently inspecting device: " + curDevice); | ||
724 | 723 | ||
725 | // skipping the first link because this link's src has already been pruned beforehand | 724 | // skipping the first link because this link's src has already been pruned beforehand |
726 | if (i != 0) { | 725 | if (i != 0) { |
727 | cleanFlowRules(sd, curDevice); | 726 | cleanFlowRules(sd, curDevice); |
728 | } | 727 | } |
729 | 728 | ||
730 | - Set<Path> pathsFromCurDevice = topologyService.getPaths(topologyService.currentTopology(), | 729 | + Set<Path> pathsFromCurDevice = |
731 | - curDevice, dstId); | 730 | + topologyService.getPaths(topologyService.currentTopology(), |
731 | + curDevice, dstId); | ||
732 | if (pickForwardPath(pathsFromCurDevice, curLink.src().port()) != null) { | 732 | if (pickForwardPath(pathsFromCurDevice, curLink.src().port()) != null) { |
733 | break; | 733 | break; |
734 | } else { | 734 | } else { |
... | @@ -748,7 +748,7 @@ public class ReactiveForwarding { | ... | @@ -748,7 +748,7 @@ public class ReactiveForwarding { |
748 | boolean matchesSrc = false, matchesDst = false; | 748 | boolean matchesSrc = false, matchesDst = false; |
749 | for (Instruction i : r.treatment().allInstructions()) { | 749 | for (Instruction i : r.treatment().allInstructions()) { |
750 | if (i.type() == Instruction.Type.OUTPUT) { | 750 | if (i.type() == Instruction.Type.OUTPUT) { |
751 | - //if the flow has matching src and dst | 751 | + // if the flow has matching src and dst |
752 | for (Criterion cr : r.selector().criteria()) { | 752 | for (Criterion cr : r.selector().criteria()) { |
753 | if (cr.type() == Criterion.Type.ETH_DST) { | 753 | if (cr.type() == Criterion.Type.ETH_DST) { |
754 | if (((EthCriterion) cr).mac().equals(pair.dst)) { | 754 | if (((EthCriterion) cr).mac().equals(pair.dst)) { |
... | @@ -773,9 +773,9 @@ public class ReactiveForwarding { | ... | @@ -773,9 +773,9 @@ public class ReactiveForwarding { |
773 | // Returns a set of src/dst MAC pairs extracted from the specified set of flow entries | 773 | // Returns a set of src/dst MAC pairs extracted from the specified set of flow entries |
774 | private Set<SrcDstPair> findSrcDstPairs(Set<FlowEntry> rules) { | 774 | private Set<SrcDstPair> findSrcDstPairs(Set<FlowEntry> rules) { |
775 | ImmutableSet.Builder<SrcDstPair> builder = ImmutableSet.builder(); | 775 | ImmutableSet.Builder<SrcDstPair> builder = ImmutableSet.builder(); |
776 | - for (FlowEntry r: rules) { | 776 | + for (FlowEntry r : rules) { |
777 | MacAddress src = null, dst = null; | 777 | MacAddress src = null, dst = null; |
778 | - for (Criterion cr: r.selector().criteria()) { | 778 | + for (Criterion cr : r.selector().criteria()) { |
779 | if (cr.type() == Criterion.Type.ETH_DST) { | 779 | if (cr.type() == Criterion.Type.ETH_DST) { |
780 | dst = ((EthCriterion) cr).mac(); | 780 | dst = ((EthCriterion) cr).mac(); |
781 | } else if (cr.type() == Criterion.Type.ETH_SRC) { | 781 | } else if (cr.type() == Criterion.Type.ETH_SRC) { | ... | ... |
... | @@ -156,7 +156,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry | ... | @@ -156,7 +156,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry |
156 | long delta = System.currentTimeMillis() - lastStart; | 156 | long delta = System.currentTimeMillis() - lastStart; |
157 | if (lastStart > 0 && delta > maxProcessMillis) { | 157 | if (lastStart > 0 && delta > maxProcessMillis) { |
158 | lastStart = 0; | 158 | lastStart = 0; |
159 | - log.error("Event sink {} exceeded execution time limit: {} ms", | 159 | + log.warn("Event sink {} exceeded execution time limit: {} ms; spawning new dispatch loop", |
160 | lastSink.getClass().getName(), delta); | 160 | lastSink.getClass().getName(), delta); |
161 | 161 | ||
162 | // Notify the sink that it has exceeded its time limit. | 162 | // Notify the sink that it has exceeded its time limit. | ... | ... |
... | @@ -53,5 +53,5 @@ scp -q $TDEF_FILE $remote:$ONOS_INSTALL_DIR/config/tablets.json | ... | @@ -53,5 +53,5 @@ scp -q $TDEF_FILE $remote:$ONOS_INSTALL_DIR/config/tablets.json |
53 | scp -qr ${ONOS_ROOT}/tools/package/config/ $remote:$ONOS_INSTALL_DIR/ | 53 | scp -qr ${ONOS_ROOT}/tools/package/config/ $remote:$ONOS_INSTALL_DIR/ |
54 | 54 | ||
55 | # Copy the desired initial network configuration to remote if needed | 55 | # Copy the desired initial network configuration to remote if needed |
56 | -[ -n $ONOS_CFG -a -f $ONOS_CFG -a "${1:-$OCI}" = "$OC1" ] && \ | 56 | +[ -n "$ONOS_CFG" -a -f "$ONOS_CFG" -a "${1:-$OCI}" = "$OC1" ] && \ |
57 | scp $ONOS_CFG $remote:$ONOS_INSTALL_DIR/config/network-cfg.json | 57 | scp $ONOS_CFG $remote:$ONOS_INSTALL_DIR/config/network-cfg.json | ... | ... |
-
Please register or login to post a comment