commit | caf1ca2b1d9d9d4575de097fd6d083c33ae7ad8a | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Thu Jun 25 15:18:16 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Fri Jun 26 13:44:55 2015 +0000 |
tree | 284ea5d1bad24a818a0ff7356a201807ce46192f | |
parent | 6e8b81e1bf096bd0a5c13cd36f7436d53570e4c6 [diff] [blame] |
adding EthType to secure handling ether types this will also pretty print ethertypes in flow output Change-Id: I9363070ad308f3c756735e29b3992c500e503636
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/MplsPathIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/MplsPathIntentCompiler.java index f9e445a..c133483 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/MplsPathIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/MplsPathIntentCompiler.java
@@ -243,7 +243,7 @@ Criterion c = intent.selector().getCriterion(Criterion.Type.ETH_TYPE); if (c != null && c instanceof EthTypeCriterion) { EthTypeCriterion ethertype = (EthTypeCriterion) c; - treat.popMpls((short) ethertype.ethType()); + treat.popMpls(ethertype.ethType().toShort()); } else { treat.popMpls(Ethernet.TYPE_IPV4); }