Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Madan Jampani
2014-10-20 16:03:49 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
66a0c4e00bfefe8642b8c76f3b42449fdf929746
66a0c4e0
2 parents
e602bb40
68b7ad3b
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
15 deletions
core/api/src/main/java/org/onlab/onos/net/flow/criteria/Criteria.java
core/api/src/main/java/org/onlab/onos/net/flow/instructions/L2ModificationInstruction.java
core/api/src/main/java/org/onlab/onos/net/flow/instructions/L3ModificationInstruction.java
core/api/src/main/java/org/onlab/onos/net/flow/criteria/Criteria.java
View file @
66a0c4e
...
...
@@ -161,7 +161,7 @@ public final class Criteria {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
port
);
return
Objects
.
hash
(
port
,
type
()
);
}
@Override
...
...
@@ -171,7 +171,8 @@ public final class Criteria {
}
if
(
obj
instanceof
PortCriterion
)
{
PortCriterion
that
=
(
PortCriterion
)
obj
;
return
Objects
.
equals
(
port
,
that
.
port
);
return
Objects
.
equals
(
port
,
that
.
port
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
());
}
return
false
;
...
...
@@ -252,7 +253,7 @@ public final class Criteria {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
ethType
);
return
Objects
.
hash
(
ethType
,
type
()
);
}
@Override
...
...
@@ -262,7 +263,8 @@ public final class Criteria {
}
if
(
obj
instanceof
EthTypeCriterion
)
{
EthTypeCriterion
that
=
(
EthTypeCriterion
)
obj
;
return
Objects
.
equals
(
ethType
,
that
.
ethType
);
return
Objects
.
equals
(
ethType
,
that
.
ethType
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
());
}
...
...
@@ -345,7 +347,7 @@ public final class Criteria {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
proto
);
return
Objects
.
hash
(
proto
,
type
()
);
}
@Override
...
...
@@ -400,7 +402,8 @@ public final class Criteria {
}
if
(
obj
instanceof
VlanPcpCriterion
)
{
VlanPcpCriterion
that
=
(
VlanPcpCriterion
)
obj
;
return
Objects
.
equals
(
vlanPcp
,
that
.
vlanPcp
);
return
Objects
.
equals
(
vlanPcp
,
that
.
vlanPcp
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
());
}
...
...
@@ -436,7 +439,7 @@ public final class Criteria {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
vlanId
);
return
Objects
.
hash
(
vlanId
,
type
()
);
}
@Override
...
...
@@ -446,7 +449,8 @@ public final class Criteria {
}
if
(
obj
instanceof
VlanIdCriterion
)
{
VlanIdCriterion
that
=
(
VlanIdCriterion
)
obj
;
return
Objects
.
equals
(
vlanId
,
that
.
vlanId
);
return
Objects
.
equals
(
vlanId
,
that
.
vlanId
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
());
}
...
...
core/api/src/main/java/org/onlab/onos/net/flow/instructions/L2ModificationInstruction.java
View file @
66a0c4e
...
...
@@ -78,7 +78,7 @@ public abstract class L2ModificationInstruction implements Instruction {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
mac
,
subtype
);
return
Objects
.
hash
(
mac
,
type
(),
subtype
);
}
@Override
...
...
@@ -89,6 +89,7 @@ public abstract class L2ModificationInstruction implements Instruction {
if
(
obj
instanceof
ModEtherInstruction
)
{
ModEtherInstruction
that
=
(
ModEtherInstruction
)
obj
;
return
Objects
.
equals
(
mac
,
that
.
mac
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
())
&&
Objects
.
equals
(
subtype
,
that
.
subtype
);
}
...
...
@@ -126,7 +127,7 @@ public abstract class L2ModificationInstruction implements Instruction {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
vlanId
,
subtype
());
return
Objects
.
hash
(
vlanId
,
type
(),
subtype
());
}
@Override
...
...
@@ -136,7 +137,9 @@ public abstract class L2ModificationInstruction implements Instruction {
}
if
(
obj
instanceof
ModVlanIdInstruction
)
{
ModVlanIdInstruction
that
=
(
ModVlanIdInstruction
)
obj
;
return
Objects
.
equals
(
vlanId
,
that
.
vlanId
);
return
Objects
.
equals
(
vlanId
,
that
.
vlanId
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
())
&&
Objects
.
equals
(
this
.
subtype
(),
that
.
subtype
());
}
return
false
;
...
...
@@ -173,7 +176,7 @@ public abstract class L2ModificationInstruction implements Instruction {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
vlanPcp
,
subtype
());
return
Objects
.
hash
(
vlanPcp
,
type
(),
subtype
());
}
@Override
...
...
@@ -183,7 +186,9 @@ public abstract class L2ModificationInstruction implements Instruction {
}
if
(
obj
instanceof
ModVlanPcpInstruction
)
{
ModVlanPcpInstruction
that
=
(
ModVlanPcpInstruction
)
obj
;
return
Objects
.
equals
(
vlanPcp
,
that
.
vlanPcp
);
return
Objects
.
equals
(
vlanPcp
,
that
.
vlanPcp
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
())
&&
Objects
.
equals
(
this
.
subtype
(),
that
.
subtype
());
}
return
false
;
...
...
core/api/src/main/java/org/onlab/onos/net/flow/instructions/L3ModificationInstruction.java
View file @
66a0c4e
...
...
@@ -70,7 +70,7 @@ public abstract class L3ModificationInstruction implements Instruction {
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
ip
,
subtype
());
return
Objects
.
hash
(
ip
,
type
(),
subtype
());
}
@Override
...
...
@@ -80,7 +80,9 @@ public abstract class L3ModificationInstruction implements Instruction {
}
if
(
obj
instanceof
ModIPInstruction
)
{
ModIPInstruction
that
=
(
ModIPInstruction
)
obj
;
return
Objects
.
equals
(
ip
,
that
.
ip
);
return
Objects
.
equals
(
ip
,
that
.
ip
)
&&
Objects
.
equals
(
this
.
type
(),
that
.
type
())
&&
Objects
.
equals
(
this
.
subtype
(),
that
.
subtype
());
}
return
false
;
...
...
Please
register
or
login
to post a comment