summaryrefslogtreecommitdiff
path: root/pysnmp/entity/rfc3413/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/entity/rfc3413/config.py')
-rw-r--r--pysnmp/entity/rfc3413/config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pysnmp/entity/rfc3413/config.py b/pysnmp/entity/rfc3413/config.py
index 144aa486..7689824b 100644
--- a/pysnmp/entity/rfc3413/config.py
+++ b/pysnmp/entity/rfc3413/config.py
@@ -63,20 +63,20 @@ def getTargetAddr(snmpEngine, snmpTargetAddrName):
transport = snmpEngine.transportDispatcher.getTransport(snmpTargetAddrTDomain)
- if snmpTargetAddrTDomain[:len(config.snmpUDPDomain)] == config.snmpUDPDomain:
+ if snmpTargetAddrTDomain[:len(config.SNMP_UDP_DOMAIN)] == config.SNMP_UDP_DOMAIN:
SnmpUDPAddress, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMPv2-TM',
'SnmpUDPAddress')
- snmpTargetAddrTAddress = transport.addressType(
+ snmpTargetAddrTAddress = transport.ADDRESS_TYPE(
SnmpUDPAddress(snmpTargetAddrTAddress)
).setLocalAddress(SnmpUDPAddress(snmpSourceAddrTAddress))
- elif snmpTargetAddrTDomain[:len(config.snmpUDP6Domain)] == config.snmpUDP6Domain:
+ elif snmpTargetAddrTDomain[:len(config.SNMP_UDP6_DOMAIN)] == config.SNMP_UDP6_DOMAIN:
TransportAddressIPv6, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols(
'TRANSPORT-ADDRESS-MIB', 'TransportAddressIPv6')
- snmpTargetAddrTAddress = transport.addressType(
+ snmpTargetAddrTAddress = transport.ADDRESS_TYPE(
TransportAddressIPv6(snmpTargetAddrTAddress)
).setLocalAddress(TransportAddressIPv6(snmpSourceAddrTAddress))
elif snmpTargetAddrTDomain[:len(config.snmpLocalDomain)] == config.snmpLocalDomain:
- snmpTargetAddrTAddress = transport.addressType(
+ snmpTargetAddrTAddress = transport.ADDRESS_TYPE(
snmpTargetAddrTAddress
)