X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fpacket%2FIEEE8021Q.java;h=9825d0eefb791098bf1724d5996c44f881c0da6f;hp=39c7d386bc1fe3ccf5ff397ebfcc491fe108aad6;hb=0fe04fdf4271be914d43d35231c1706ec34b05f6;hpb=8f1311a095f91890dc661019174695096e978c44 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/packet/IEEE8021Q.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/packet/IEEE8021Q.java index 39c7d386bc..9825d0eefb 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/packet/IEEE8021Q.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/packet/IEEE8021Q.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013-2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -13,6 +13,8 @@ import java.util.LinkedHashMap; import java.util.Map; import org.apache.commons.lang3.tuple.ImmutablePair; import org.apache.commons.lang3.tuple.Pair; +import org.opendaylight.controller.sal.match.Match; +import org.opendaylight.controller.sal.match.MatchType; /** * Class that represents the IEEE 802.1Q objects @@ -148,4 +150,10 @@ public class IEEE8021Q extends Packet { return this; } + @Override + public void populateMatch(Match match) { + match.setField(MatchType.DL_VLAN, this.getVid()); + match.setField(MatchType.DL_VLAN_PR, this.getPcp()); + match.setField(MatchType.DL_TYPE, this.getEtherType()); + } }