diff options
author | 2019-04-09 12:39:35 -0400 | |
---|---|---|
committer | 2019-04-09 12:39:35 -0400 | |
commit | 187216ae3737c1f99a681162a3f51037c108113e (patch) | |
tree | 5a7223b0309c2ccc77e067be0a6faaa7b52cbd04 /ms/blueprintsprocessor/functions/netconf-executor/src/main | |
parent | be54e7823892359818a90abbb2476052d0e1ae84 (diff) |
netconf-executor: NetconfDeviceCommunicator tests
Issue-ID: CCSDK-1126
Change-Id: I524dbc9b8edcdf3922f762b77cfbb13b7b69df16
Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
Diffstat (limited to 'ms/blueprintsprocessor/functions/netconf-executor/src/main')
-rw-r--r-- | ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/api/DeviceInfo.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/api/DeviceInfo.kt b/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/api/DeviceInfo.kt index 5eeaf6046..f5567b7a2 100644 --- a/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/api/DeviceInfo.kt +++ b/ms/blueprintsprocessor/functions/netconf-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/netconf/executor/api/DeviceInfo.kt @@ -40,4 +40,14 @@ class DeviceInfo { override fun toString(): String { return "$ipAddress:$port" } + //TODO: should this be a data class instead? Is anything using the JSON serdes? + override fun equals(other: Any?): Boolean { + if (this === other) return true + if (javaClass != other?.javaClass) return false + return true + } + + override fun hashCode(): Int { + return javaClass.hashCode() + } }
\ No newline at end of file |