summaryrefslogtreecommitdiffstats
path: root/framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java
diff options
context:
space:
mode:
authorCNlucius <lukai1@huawei.com>2016-09-13 11:40:12 +0800
committerCNlucius <lukai1@huawei.com>2016-09-13 11:41:53 +0800
commitb731e2f1dd0972409b136aebc7b463dd72c9cfad (patch)
tree5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java
parentee93993458266114c29271a481ef9ce7ce621b2a (diff)
ONOSFW-171
O/S-SFC-ONOS scenario documentation Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365 Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java')
-rw-r--r--framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java66
1 files changed, 0 insertions, 66 deletions
diff --git a/framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java b/framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java
deleted file mode 100644
index 84b44c97..00000000
--- a/framework/src/onos/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/SubnetAssignedVidStoreKey.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.onosproject.segmentrouting;
-
-import java.util.Objects;
-
-import org.onlab.packet.Ip4Prefix;
-import org.onosproject.net.DeviceId;
-
-/**
- * Class definition for key used to map per device subnets to assigned Vlan ids.
- *
- */
-public class SubnetAssignedVidStoreKey {
- private final DeviceId deviceId;
- private final Ip4Prefix subnet;
-
- public SubnetAssignedVidStoreKey(DeviceId deviceId, Ip4Prefix subnet) {
- this.deviceId = deviceId;
- this.subnet = subnet;
- }
-
- /**
- * Returns the device identification used to create this key.
- *
- * @return the device identifier
- */
- public DeviceId deviceId() {
- return deviceId;
- }
-
- /**
- * Returns the subnet information used to create this key.
- *
- * @return the subnet
- */
- public Ip4Prefix subnet() {
- return subnet;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof SubnetAssignedVidStoreKey)) {
- return false;
- }
- SubnetAssignedVidStoreKey that =
- (SubnetAssignedVidStoreKey) o;
- return (Objects.equals(this.deviceId, that.deviceId) &&
- Objects.equals(this.subnet, that.subnet));
- }
-
- @Override
- public int hashCode() {
- int result = 17;
- result = 31 * result + Objects.hashCode(deviceId)
- + Objects.hashCode(subnet);
- return result;
- }
-
- @Override
- public String toString() {
- return "Device: " + deviceId + " Subnet: " + subnet;
- }
-
-}