Brady,
Take a look at MatchVlanBuilder.java in genius. We set a Boolean field to
indicate whether vlan id is present or not.
protected void populateBuilder(VlanMatchBuilder builder) {
builder.setVlanId(new VlanIdBuilder()
.setVlanId(new VlanId(vlanId))
.setVlanIdPresent(vlanId != 0)
.build());
}
Thanks,
Faseela
From: [email protected]
[mailto:[email protected]] On Behalf Of Ryan
Goulding
Sent: Sunday, April 15, 2018 5:32 AM
To: M. Ranganathan <[email protected]>
Cc: Brady Johnson <[email protected]>; openflowplugin-dev
<[email protected]>
Subject: Re: [openflowplugin-dev] How to match on VLAN
IIRC this is based off Nitrogen-SR2, so shouldn't be prone to the issues listed
there.
Thanks!
Regards,
Ryan Goulding
On Sat, Apr 14, 2018 at 6:52 PM, M. Ranganathan
<[email protected]<mailto:[email protected]>> wrote:
Not sure if this would help ( I was trying something a little different than
you are ) but I had some issues creating set Vlan flows in Carbon
https://stackoverflow.com/questions/47610513/how-to-create-a-set-vlan-flow
I had much better luck with Nitrogen
Ranga
On Fri, Apr 13, 2018 at 5:42 PM, Brady Johnson
<[email protected]<mailto:[email protected]>> wrote:
Hello,
Im trying to write flows to pop-vlan or just simply set the vlan-id, but the
flows arent being written to operational, nor the bridge. I tried doing an
etherType match on VLAN (0x8100) but that doesnt help.
The 2 use cases I have are for flows that ingress the bridge with VLAN already
set are:
1) if VLAN present (could be lots of different vlan IDs), pop it.
2) if VLAN present set the VLAN id to a different one.
Ive tried flows for both of these cases, and neither are written to
Operational. Ideally there should be an 802.1Q TPID (Tag protocol ID) match
field, where you could match on 0x8100, but I couldnt find anything like this.
Regards,
Brady Johnson
[email protected]<mailto:[email protected]>
[http://www.inocybe.com/wp-content/uploads/2014/09/default-login-image.png]
[https://lh5.googleusercontent.com/4bsvmVYKzg5a_jM7_OOqbLXBSi8HbyuNfXuS5cO9eUpXgLzSUKrmdqdSOFmdShqIg0hX4xUHo2nYSUAlBC7KRnN3-COAkcx0CLOUEQrHCx9TVrQ2-0MP_qR0XpR22Kc8sdAQzZc1]<https://twitter.com/inocybetech>[https://lh3.googleusercontent.com/mkQzuX53_XbTrmTqeiS_gh2tauU4wJ_poqn7v-NSdKZoLI0jbWxdIIhrHZh7rSB-xpU7e2SqYDhcNfE8-rxzlQn15KaqJ9BqWOl65BakoHsKrbcCMhcdsnyrJAVuUV5SIFoazHIr]<http://www.inocybe.com/>[https://lh3.googleusercontent.com/Nzy3ZqITNZfRZ_hT9N3dh7K8ow5sF68e-qmL_5CFjka1oWK2XSfPZOUN6S9gp9k84l1KWTwDPCOb2Vbh0Oi6pVm4Nl7IpXp1QrTI6gkLNcWtMNpHMq2o2CxCfgqTPDA6pKBxNwhY]<https://www.linkedin.com/company/2661537?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2661537%2Cidx%3A1-1-1%2CtarId%3A1441300264767%2Ctas%3Ainocybe>[Screenshot
2017-02-14 at 10.43.55
AM.png]<https://www.youtube.com/channel/UC9uUWABdPR0Je9Du_15FCkw>
_______________________________________________
openflowplugin-dev mailing list
[email protected]<mailto:[email protected]>
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
--
M. Ranganathan
_______________________________________________
openflowplugin-dev mailing list
[email protected]<mailto:[email protected]>
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev