You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/09/06 15:19:11 UTC
[camel] 01/03: Update SnmpEndpoint.java
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 77a461dd1a1603ad7a91b627ee04c1ea2fc39365
Author: cumtwwei <19...@qq.com>
AuthorDate: Fri Sep 6 10:25:06 2019 +0800
Update SnmpEndpoint.java
add the support to 'snmp walk', use snm4j GET_NEXT.
---
.../src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
index 7e86d721..0cacd74 100644
--- a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
+++ b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java
@@ -114,7 +114,8 @@ public class SnmpEndpoint extends DefaultPollingEndpoint {
if (this.type == SnmpActionType.TRAP) {
return new SnmpTrapProducer(this);
} else {
- return new SnmpProducer(this);
+ // add the support: snmp walk (use snmp4j GET_NEXT)
+ return new SnmpProducer(this, this.type);
}
}