l2switch.git
9 years agoMerge "Adding config param to choose packet types for address tracking"
Alexander Fan [Fri, 5 Sep 2014 01:19:59 +0000 (01:19 +0000)]
Merge "Adding config param to choose packet types for address tracking"

9 years agoAdding config param to choose packet types for address tracking 25/10825/1
Amit Mandke [Fri, 5 Sep 2014 00:55:52 +0000 (17:55 -0700)]
Adding config param to choose packet types for address tracking

Change-Id: I6f5f4bccf31d28310a4bc1e680496b015b079a08
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoIntegrate L2SwitchMain with config subsystem. 19/10819/1
Alex Fan [Thu, 4 Sep 2014 23:26:50 +0000 (16:26 -0700)]
Integrate L2SwitchMain with config subsystem.

Change-Id: I572de5580194ac6f693a66fdd9e90ed8da55b837
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoIntegrate address tracker with config subsystem. 05/10805/1
Alex Fan [Thu, 4 Sep 2014 20:57:06 +0000 (13:57 -0700)]
Integrate address tracker with config subsystem.

Change-Id: Icf3e011fe21067c69d54c8a8a15e08e222ed8dbc
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoIntegrate LoopRemover module with config subsystem. 38/10738/5
Alex Fan [Wed, 3 Sep 2014 22:08:47 +0000 (15:08 -0700)]
Integrate LoopRemover module with config subsystem.

Change-Id: Icfbd3fdd2e9e87d47983264e07b77301e1966ef3
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoURGENT Fix for missing dependency in features. 43/10743/1
Amit Mandke [Thu, 4 Sep 2014 00:58:16 +0000 (17:58 -0700)]
URGENT Fix for missing dependency in features.

Change-Id: I9c541301f9db80bbb04c6cb7ed83700d21a26a5b
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoIntegrate packethandler & arphandler with config subsystem. 00/10400/10
Alex Fan [Wed, 27 Aug 2014 22:59:54 +0000 (15:59 -0700)]
Integrate packethandler & arphandler with config subsystem.

Change-Id: Ia43c2b349c47e07d97a36dd45373b1a2d8c0823a
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoURGENT Fix feature for arphandler dependency. 77/10377/1
Ed Warnicke [Wed, 27 Aug 2014 13:34:30 +0000 (08:34 -0500)]
URGENT Fix feature for arphandler dependency.

Integration is broken until this is fixed.

Change-Id: I47cf046b340cc297a166129844ca69c810e29883
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoRefactoring code seperating arp handler from main 44/10344/1
Amit Mandke [Tue, 26 Aug 2014 19:22:54 +0000 (12:22 -0700)]
Refactoring code seperating arp handler from main
Currently address tracker needs l2switch main to work to its full potential.
So this refactoring would seprate out a module that can go as only dependency
of address tracker. This would leave only reactive flow writing in main module.

Change-Id: Ic36ba57dd69e429453f0593cbd9a935842fa8ae6
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdding Karaf features for L2switch 15/10115/5
Ed Warnicke [Tue, 19 Aug 2014 00:08:53 +0000 (17:08 -0700)]
Adding Karaf features for L2switch

Also added a local karaf distributions.

cd distribution/karaf/target/assembly/bin
./karaf

And it will come up running l2switch and restconf.

Point mininet at it, pingall, and look at the host tracking
in topology:

GET http://localhost:8181/restconf/operational/network-topology:network-topology/

Had to force maven bundle plugin to 2.4.0 as 2.5.0 is incompatible
with karaf

Change-Id: I0ff09b6d330d3fc7e741cfdc8d652637fdea8ff3
Signed-off-by: Amit Mandke <ammandke@cisco.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdded util classes for packet decoding instead of depending on controller 99/10199/2
Amit Mandke [Sat, 23 Aug 2014 00:48:37 +0000 (17:48 -0700)]
Added util classes for packet decoding instead of depending on controller

Change-Id: I61f6e4cfb561ac3816b2c209c7c0cccceb70c572
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdding interval in address obsrvation writes. 97/10197/3
Amit Mandke [Fri, 22 Aug 2014 22:19:35 +0000 (15:19 -0700)]
Adding interval in address obsrvation writes.
Currently address observation writer updates same observation too
frequently. This change would update it only after some interval.

Change-Id: Ib329de930829438f2d10a29f0377ca299636710f
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoCreating separate proactive flows for internal and external ports. 56/10156/1
Amit Mandke [Fri, 22 Aug 2014 07:47:25 +0000 (00:47 -0700)]
Creating separate proactive flows for internal and external ports.
1. this helps writting less address observation to store.
2. due to point 1. no conclicting commits are observed for test upto
64 switches 10 hosts each.
3. this affects mac to mac flow writer as flows are not written on
each switch. Improved solution is required for this.

Change-Id: I70024f2a300b74f65b8e16e231114a9bd1b17ba7
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdding back single flood flow. 24/10124/2
Amit Mandke [Thu, 21 Aug 2014 07:51:29 +0000 (00:51 -0700)]
Adding back single flood flow.
Openflow specification confirms that oputput action would not
send a packet out of ingress port unless reserved port is used.
So it is safe to use single flood flow that only discards 'discarding'
ports.

Change-Id: Ic82013ad0ea3915b217884582c0fd9552bd21c7c
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdded logic to ignore host link events. 21/10121/3
Amit Mandke [Thu, 21 Aug 2014 03:25:34 +0000 (20:25 -0700)]
Added logic to ignore host link events.
Network graph or mst doesnt need referesh if host links are
added or removed.

Change-Id: I3cbdfa836943c45bab9b2d84b49ed8451cc90a3b
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoImplemented a small AddressObserver for HostTracker. 23/9923/7
André Martins [Wed, 13 Aug 2014 17:05:53 +0000 (18:05 +0100)]
Implemented a small AddressObserver for HostTracker.

Host tracker with new methods and implementations.
Fix a bug and hosttracker checks datacreated.
Created documentations for Host.

Change-Id: I9c83287c3ed7541ac6b7af05f2a04275ab19ac00
Signed-off-by: André Martins <aanm@ua.pt>
9 years agoApplied Karaf features to l2switch. 70/9970/5
André Martins [Fri, 15 Aug 2014 03:07:01 +0000 (23:07 -0400)]
Applied Karaf features to l2switch.

Change-Id: I55831747a4ed6b9650ab107c5e36183272406f44
Signed-off-by: André Martins <aanm@ua.pt>
Signed-off-by: Mathieu Lemay <mlemay@inocybe.com>
Signed-off-by: André Martins <aanm@ua.pt>
9 years agoMaking further changes to proactive flood, with additional performance improvements. 86/10086/3
Amit Mandke [Wed, 20 Aug 2014 07:27:16 +0000 (00:27 -0700)]
Making further changes to proactive flood, with additional performance improvements.
1. initial flood flows are changed to handle pingall failure.
2. removed some redundant calls to inventory reader and made some further code optimization.
3. code restructuring moved logical classes in respective packages.(arphandler & flow)
4. made pending change to address observer to generate unique key for each address observation.

Change-Id: I501f2a0082e9623c91336a445f135dc41abd1408
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdding proactive mode for L2Switch, which installs flood flows. 46/10046/3
Alex Fan [Mon, 18 Aug 2014 21:23:01 +0000 (14:23 -0700)]
Adding proactive mode for L2Switch, which installs flood flows.

Change-Id: I779a49fe9e7fd4ba69dfe934fd4a742b0f77b2bc
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoSplitting Flow writing and packet dispatch(reactive flood). 42/10042/1
Amit Mandke [Mon, 18 Aug 2014 19:21:15 +0000 (12:21 -0700)]
Splitting Flow writing and packet dispatch(reactive flood).
This would allow either to be enabled or disabled easily based on need.

Change-Id: I271a1f58ff8df916413aa1e20154c60fa2860784
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoMaking changes to loop remover so that it doesnt rely on in memory graph. 61/9961/1
Amit Mandke [Tue, 12 Aug 2014 20:43:51 +0000 (13:43 -0700)]
Making changes to loop remover so that it doesnt rely on in memory graph.
This would help the loopremover to behave same across cluster(in a clustered env)
and it will not reply on any in memory local state.

Change-Id: I639ce0cd87a3e61c67a69a611ded4bea050682cb
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoMerge "Fixed ClassCastException during decode. There was possibility of single decode...
Alexander Fan [Wed, 13 Aug 2014 22:44:21 +0000 (22:44 +0000)]
Merge "Fixed ClassCastException during decode. There was possibility of single decoder instance being registered twice as notification listner. This synchronized method would eliminate that. This was resulting in ClassCastException/ unpredictable behaviour."

9 years agoFixed ClassCastException during decode. 32/9932/1
Amit Mandke [Wed, 13 Aug 2014 21:10:35 +0000 (14:10 -0700)]
Fixed ClassCastException during decode.
There was possibility of single decoder instance being registered
twice as notification listner. This synchronized method would eliminate that.
This was resulting in ClassCastException/ unpredictable behaviour.

Change-Id: I52e57b8e1568520c6742c20ea60e5b28610df68f
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoRemoving duplicated information from poms in host tracker 97/9897/2
Colin Dixon [Tue, 12 Aug 2014 18:52:55 +0000 (13:52 -0500)]
Removing duplicated information from poms in host tracker

This includes things already specified in parent poms like:
* dependency versions
* groupIDs
* artifact versions

Change-Id: I5c0e7fe7ea2dbd02774550c81180e653a0805b38
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoEnabling checkstyle by default 96/9896/2
Colin Dixon [Tue, 12 Aug 2014 18:41:53 +0000 (13:41 -0500)]
Enabling checkstyle by default

This patch includes the default checkstyle from the controller project and
updates all currently checked in files to comply with the checkstyle rules.

Change-Id: I78f7949adf6ec0a7144c88756ccee546192879d2
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoFixing pom files so Eclipse works 94/9894/2
Colin Dixon [Tue, 12 Aug 2014 18:14:54 +0000 (13:14 -0500)]
Fixing pom files so Eclipse works

Moved the Eclipse-related plugins and pluginMangement to the l2switch-parent
so that all relevant projects will automatically import into Eclipse correctly.

Change-Id: I27dcd4adf726634ae78501a425bf33b39130a708
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoAdding Initial Flows on switch for performance improvement. 82/9882/4
Amit Mandke [Fri, 8 Aug 2014 19:04:45 +0000 (12:04 -0700)]
Adding Initial Flows on switch for performance improvement.
These sends minimum packets(ARP and LLDP) to controller for
learning addresses and programming flows as l2switch requires.

Change-Id: Id7f0ba5ca7dea6e83b02c4a8a997bcc2bade05e0
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoMoving address observer implementation to address tracker. 83/9883/2
Amit Mandke [Tue, 12 Aug 2014 07:36:50 +0000 (00:36 -0700)]
Moving address observer implementation  to address tracker.
This would help to seperate address tracking implementation
moduler and independent of other l2switch fuctionality.

Change-Id: I97a434fb105293e063a85f9dda62a0bb479aeb92
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoFollowing minor fixes done. 03/9803/1
Amit Mandke [Fri, 8 Aug 2014 06:50:33 +0000 (23:50 -0700)]
Following minor fixes done.
1. info logs changed to debug as unnecessary log was being printed at info level.
2. transaction commit changed to submit as commit is deprecated.

Change-Id: I27b1277d8f1debce328c2c6a195c5059ddfa5393
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoMerge "Host Tracker generated source code imports into Eclipse"
Evan Zeller [Thu, 7 Aug 2014 20:36:33 +0000 (20:36 +0000)]
Merge "Host Tracker generated source code imports into Eclipse"

9 years agoMinor fixes observeed during testing. 66/9766/1
Amit Mandke [Thu, 7 Aug 2014 01:58:50 +0000 (18:58 -0700)]
Minor fixes observeed during testing.

Change-Id: I2019e5e1e496b2caac0a435a0ae9ee4cac7b49b3
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoFixing l2switch base distribution so it runs without errors 58/9758/1
Colin Dixon [Wed, 6 Aug 2014 17:45:25 +0000 (12:45 -0500)]
Fixing l2switch base distribution so it runs without errors

This involved commenting out the exclude for
opendaylight/plugins/org.opendaylight.controller.sal-remote*.jar

Change-Id: Ied02eb9f4cf1aa6baad70872a9f7753a1ea0640f
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoHost Tracker generated source code imports into Eclipse 22/9722/3
Colin Dixon [Tue, 5 Aug 2014 22:37:32 +0000 (17:37 -0500)]
Host Tracker generated source code imports into Eclipse

Change-Id: I97ddf55fdd69da033c7df58fed2990aab6c2b6fb
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoMerge "Refined host model & pushing to topology"
Amit Mandke [Mon, 4 Aug 2014 22:56:13 +0000 (22:56 +0000)]
Merge "Refined host model & pushing to topology"

9 years agoChanging key for addresses (Bug 1470) 11/9611/1
Colin Dixon [Sat, 2 Aug 2014 16:19:29 +0000 (11:19 -0500)]
Changing key for addresses (Bug 1470)

The addresses structure used to use the first-seen timestamp as a key.
That is not guranteed to be unique. This changes that to use an opaque
64-bit identifier. Currently, it's populated with the MAC addres
interpreted as a BigInteger, but that should not be counted on in the
future and should be checked for uniqueness.

Change-Id: I579c2c5587c62ef685317bd54049aead67406d35
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoRefined host model & pushing to topology 08/9608/1
Evan Zeller [Fri, 1 Aug 2014 19:46:45 +0000 (15:46 -0400)]
Refined host model & pushing to topology

Change-Id: I53acd272482e42ab43d31ebf388bd59a8f01cd4b
Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
9 years agoFixed nullpointer exception and added new functionalities on hosttracker 57/9557/1
André Martins [Fri, 1 Aug 2014 02:43:44 +0000 (03:43 +0100)]
Fixed nullpointer exception and added new functionalities on hosttracker

Change-Id: I988121a16bdd95ea50e3405b55730f8bc8980f75
Signed-off-by: André Martins <aanm@ua.pt>
9 years agoAvoiding Null pointer in hosttracker. 50/9550/1
Amit Mandke [Fri, 1 Aug 2014 00:11:44 +0000 (17:11 -0700)]
Avoiding Null pointer in hosttracker.
Better implementation needs to be added. Just avoiding nullpointer for now.

Change-Id: If3aabd11bb49b6fc49fc578f200c7a9c989d3aa3
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdded new changes to hosttracker 14/9514/2
André Martins [Thu, 31 Jul 2014 00:27:49 +0000 (01:27 +0100)]
Added new changes to hosttracker

Change-Id: Ib51f46111f69a887d752c96a9b4f69893a49a762
Signed-off-by: André Martins <aanm@ua.pt>
9 years agoMerge "Bring hosttracker code into l2switch"
Amit Mandke [Wed, 30 Jul 2014 22:11:06 +0000 (22:11 +0000)]
Merge "Bring hosttracker code into l2switch"

9 years agoMerge "BUG-432: Fix in response to Gerrit 9362"
Alexander Fan [Mon, 28 Jul 2014 23:13:18 +0000 (23:13 +0000)]
Merge "BUG-432: Fix in response to Gerrit 9362"

9 years agoBUG-432: Fix in response to Gerrit 9362 17/9417/1
Ed Warnicke [Mon, 28 Jul 2014 22:38:03 +0000 (17:38 -0500)]
BUG-432: Fix in response to Gerrit 9362

https://git.opendaylight.org/gerrit/#/c/9362/
broke stuff... this fixes it.

Change-Id: Ia152a160511429a3f5cc467e48f8e880b134a28a
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoChanging Registrations to not use generics 12/9412/3
Colin Dixon [Mon, 28 Jul 2014 21:34:40 +0000 (16:34 -0500)]
Changing Registrations to not use generics

This is a reaction to this patch in yangtools:
https://git.opendaylight.org/gerrit/#/c/9362/

Change-Id: I69e8d93c8d058cbe13c7aa68ad66640f3367c514
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoBring hosttracker code into l2switch 39/9339/1
Evan Zeller [Fri, 25 Jul 2014 23:44:22 +0000 (19:44 -0400)]
Bring hosttracker code into l2switch

Change-Id: I718dca4d8a0e2ed3516499b770c0b612bb6f8718
Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
9 years agoMove stp status to operational datastore. 49/9249/1
Alex Fan [Tue, 22 Jul 2014 22:57:33 +0000 (15:57 -0700)]
Move stp status to operational datastore.

Change-Id: Ic0e4dc593e157a62a8b2a24eaf812f0166d3275c
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoRefactor for the DataStore changes. 47/9247/1
Alex Fan [Tue, 22 Jul 2014 22:29:01 +0000 (15:29 -0700)]
Refactor for the DataStore changes.

Change-Id: I8fa367f46687dec4f598f46b7f4954810c02f40d
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoFollowing Fixes are added 74/9174/3
Amit Mandke [Sat, 19 Jul 2014 01:09:39 +0000 (18:09 -0700)]
Following Fixes are added
1. Fixed Null pointer exception while reading data from InvetoryReader
2. Compilation for read from data store is removed. Optional<> needs to be declared for the specific type you are reading from store, instead of just DataObject.
3. Dlux UI is added to the distribution.

Change-Id: Ia18c3f32d353cdcdb44bd00d76a5f0618af4cc6c
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoScript for ring and mesh topology in mininet 67/9167/1
Amit Mandke [Fri, 18 Jul 2014 18:08:11 +0000 (11:08 -0700)]
Script for ring and mesh topology in mininet

Change-Id: I6afc719b83314379e9befc36dbb7b69a88d0946c
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoFix for Amit's review comment to check stp status for destinationNodeConnector. ... 31/9131/1
Alex Fan [Thu, 17 Jul 2014 23:38:40 +0000 (16:38 -0700)]
Fix for Amit's review comment to check stp status for destinationNodeConnector.  Also added some JavaDocs.

Change-Id: I77c7013b978c9a5e731ad85ce7f3ab65ef373a4a
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoFinishing FlowWriterService. 30/9130/1
Alex Fan [Thu, 17 Jul 2014 22:57:16 +0000 (15:57 -0700)]
Finishing FlowWriterService.

Change-Id: I2134bb49e2c5f08dc0b5a91738e643711d3bfc50
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoCleaning up old decoders. 27/9127/1
Amit Mandke [Thu, 17 Jul 2014 22:01:20 +0000 (15:01 -0700)]
Cleaning up old decoders.
All decoders are part of packet handler now.

Change-Id: I1b896d67f9edcdf8dac67c3ea6688c38ce5227a3
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years ago(1) Added FlowWriter code. (2) Added code to InventoryService to read the address... 05/9105/1
Alex Fan [Thu, 17 Jul 2014 08:29:49 +0000 (01:29 -0700)]
(1) Added FlowWriter code.  (2) Added code to InventoryService to read the address observations.

Change-Id: Ic358509cfecbe38f3285110619913079d974e8f3
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoDo not flood on the node connectors marked as "discarding." 97/9097/2
Alex Fan [Wed, 16 Jul 2014 23:18:12 +0000 (16:18 -0700)]
Do not flood on the node connectors marked as "discarding."

Change-Id: Iffcb467e8cb5c483e3638648af9eea2815f6c2c4
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoAdding loop remover service. 43/9043/2
Amit Mandke [Wed, 16 Jul 2014 01:48:36 +0000 (18:48 -0700)]
Adding loop remover service.
1. Builds MST based on topology.
2. Updates port status based on redundent links.

Change-Id: Iab6428c29b8e7cd52607b8ceac81259cdb9d8b62
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoFixing null pointer exception in packet handler 54/8954/2
Colin Dixon [Fri, 11 Jul 2014 20:32:51 +0000 (15:32 -0500)]
Fixing null pointer exception in packet handler

Change-Id: Ibd8f700af3fc4330d461ada31757bb5eaa0da896
Signed-off-by: Colin Dixon <colin@colindixon.com>
9 years agoRefactor ipv4packet.yang to use already-defined inet types, per Wojciech's previous... 23/8923/1
Alex Fan [Fri, 11 Jul 2014 02:35:50 +0000 (19:35 -0700)]
Refactor ipv4packet.yang to use already-defined inet types, per Wojciech's previous patch.

Change-Id: I9b104b27413bc9cec08946762bc34590c9c1d2f1
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoChange address-tracker.yang to use the vlan-id typedef in ethernet-packet.yang 22/8922/1
Alex Fan [Fri, 11 Jul 2014 02:18:13 +0000 (19:18 -0700)]
Change address-tracker.yang to use the vlan-id typedef in ethernet-packet.yang

Change-Id: Icb008d427c2d42ee3b99c0b445fd7d765f85e6ad
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoAdding arp and ipv4 tests from mininet/wireshark dump. 21/8921/1
Alex Fan [Fri, 11 Jul 2014 02:07:58 +0000 (19:07 -0700)]
Adding arp and ipv4 tests from mininet/wireshark dump.

Change-Id: Ib27962822d587300bee47d387fe55ee945b8a97d
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoFixed a bug in IPv6decoder. 17/8917/3
Alex Fan [Thu, 10 Jul 2014 23:36:18 +0000 (16:36 -0700)]
Fixed a bug in IPv6decoder.

Change-Id: If5d5bd9e6634601ce9a107b2aa2ba8f24181c660
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoAdding handling of IPv6 packets for l2switch-main. 16/8916/1
Alex Fan [Thu, 10 Jul 2014 22:31:33 +0000 (15:31 -0700)]
Adding handling of IPv6 packets for l2switch-main.

Change-Id: Ibbbc4e0b8fcb737cf3ec337e2b9f4c4709b1e1e4
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoRefactor to packet-chain, per Wojiech suggestion. 84/8884/7
Alex Fan [Thu, 10 Jul 2014 02:20:08 +0000 (19:20 -0700)]
Refactor to packet-chain, per Wojiech suggestion.

Change-Id: I0f251c3288ea722fcb1711e0ec984c2fa69f5fd0
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoFixed following issues: 36/8836/1
Amit Mandke [Wed, 9 Jul 2014 02:34:25 +0000 (19:34 -0700)]
Fixed following issues:
1. made use of new DataBrokre and removed referece to old DataBrokerService as it is deprecated.
2. fixed a bug in address observer where multiple entries were being made for same address tuple.

Change-Id: I213c2a6df82768a2881bda640cbd9b63d6033ff2
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoMerge "Add generated source as source folder in eclipse"
Amit Mandke [Tue, 8 Jul 2014 22:01:00 +0000 (22:01 +0000)]
Merge "Add generated source as source folder in eclipse"

9 years agoinstantiated ipv4 decoder 23/8823/1
Amit Mandke [Tue, 8 Jul 2014 19:45:23 +0000 (12:45 -0700)]
instantiated ipv4 decoder

Change-Id: Ieaee8a9f17428eea55c3de998d988a3eb591a9c9
Signed-off-by: Amit Mandke <ammandke@cisco.com>
9 years agoAdd generated source as source folder in eclipse 20/8820/1
Evan Zeller [Tue, 8 Jul 2014 19:07:42 +0000 (15:07 -0400)]
Add generated source as source folder in eclipse

Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
Change-Id: I63318aec3e316aadc4a6930937024d6ee456e94a

9 years agoSend packetOut for Ipv4 packets too. 67/8767/2
Alex Fan [Mon, 7 Jul 2014 23:48:09 +0000 (16:48 -0700)]
Send packetOut for Ipv4 packets too.

Change-Id: Ie4ea8f5a129887d1bc8344901dd89303184b4277
Signed-off-by: Alex Fan <railor33@gmail.com>
9 years agoadd changes to clean generated code by yang tools during mvn clean. 69/8769/1
Amit Mandke [Tue, 8 Jul 2014 00:26:33 +0000 (17:26 -0700)]
add changes to clean generated code by yang tools during mvn clean.

Change-Id: I191dbfeac99cf41e22bed2d96f8ac40f897dc9ce
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoIpv4 Decoder refactoring + Unit test changes 46/8746/2
lolageaarti [Fri, 4 Jul 2014 02:46:11 +0000 (19:46 -0700)]
Ipv4 Decoder refactoring + Unit test changes

Change-Id: I0c860e17bcee1251a4a2a2729ee7500ab5271bbd
Signed-off-by: Aarti Lolage <aalolage@cisco.com>
10 years agoFix a bug in flooding in sendPacketOut. 52/8652/1
Alex Fan [Fri, 4 Jul 2014 01:03:28 +0000 (18:03 -0700)]
Fix a bug in flooding in sendPacketOut.

Change-Id: Id9d71a3079151850f5d6acc5bb8cd67ad347b9b2
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoImproved InventoryReader to not use any hacks & finished sendPacketOut, which no... 50/8650/2
Alex Fan [Fri, 4 Jul 2014 00:21:48 +0000 (17:21 -0700)]
Improved InventoryReader to not use any hacks & finished sendPacketOut, which no longer creates a packet storm.

Change-Id: I8b2b014fbba058c86d07e2c009f3f0ace23ee8ae
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding files for Ipv6 decoding; however, the implementation of the decoder & the... 46/8646/1
Alex Fan [Thu, 3 Jul 2014 22:27:31 +0000 (15:27 -0700)]
Adding files for Ipv6 decoding; however, the implementation of the decoder & the test is not done.

Change-Id: Icea7cc039be0459ab114e855b420f7d2042e4991
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding license to java files. 36/8636/1
Alex Fan [Thu, 3 Jul 2014 21:48:46 +0000 (14:48 -0700)]
Adding license to java files.

Change-Id: Idf291b70de9fe2a18fbc3f302a64302e4f214146
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoupdating poms to add address tracker and main in distribution 98/8598/1
Amit Mandke [Thu, 3 Jul 2014 08:01:37 +0000 (01:01 -0700)]
updating poms to add address tracker and main in distribution

Change-Id: Idf06382adc700c42cf53d6878fac18fc8437a555
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoAdding sendPacketOut functionality; however, it is commented out because the packets... 94/8594/1
Alex Fan [Thu, 3 Jul 2014 07:44:58 +0000 (00:44 -0700)]
Adding sendPacketOut functionality; however, it is commented out because the packets keep getting bounced back to one another.  The switches are in openflow mode and just keep sending packets back to the controller, instead of learning for themselves.

Change-Id: I102776b5b610c91065dedb30feff34a9af765eaa
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoOptimize AddressObservationWriter, formerly had a lot of redundant code. 90/8590/1
Alex Fan [Thu, 3 Jul 2014 04:05:23 +0000 (21:05 -0700)]
Optimize AddressObservationWriter, formerly had a lot of redundant code.

Change-Id: Ide834265c27ef1e9425563d9c78ccb12e56fc420
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRefactor the AddressTracker & PacketHandler classes -- separation of functionality... 88/8588/1
Alex Fan [Thu, 3 Jul 2014 03:00:47 +0000 (20:00 -0700)]
Refactor the AddressTracker & PacketHandler classes -- separation of functionality into AddressObserver, AddressObservationWriter, and PacketDispatch.

Change-Id: I9a303d4caa851b64c86b176187849d1d125b84d8
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoInsertion fails without defining a key, so defined "first-seen" as the key. 87/8587/1
Alex Fan [Thu, 3 Jul 2014 02:13:49 +0000 (19:13 -0700)]
Insertion fails without defining a key, so defined "first-seen" as the key.

Change-Id: I48d6f8ff7efdc4a2b43531905b2b2806d3b018da
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoCompleting l2switch-main module. 69/8569/3
Alex Fan [Wed, 2 Jul 2014 19:00:40 +0000 (12:00 -0700)]
Completing l2switch-main module.

Change-Id: If038e5ab8779c4f46d18e8f92c3d7eaddf3a65d7
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoThis commit consists of.. 22/8522/3
Alex Fan [Tue, 1 Jul 2014 23:50:57 +0000 (16:50 -0700)]
This commit consists of..
(1) Part of Wojciech's changes to ethernet-packet.yang.
(2) EthernetDecoder refactoring.
(3) ArpDecoder fix to account for the offset field being in bytes.

Change-Id: I452665e5593e7a5f380ccdf96154633f6a8eea14
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoModified arp to use refactored models. 18/8518/1
Amit Mandke [Tue, 1 Jul 2014 21:36:01 +0000 (14:36 -0700)]
Modified arp to use refactored models.
Also added a canDecode method in decoders

Change-Id: I2abd9a51d7dfcd8c8fd94b89e74281cf4a6368b5
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoAdded l2switch distribution. 79/8479/1
Amit Mandke [Tue, 1 Jul 2014 07:38:35 +0000 (00:38 -0700)]
Added l2switch distribution.
This loads only those bundles that are required to run l2switch.

Change-Id: I6adc853cf8e929abd7215c7277b542b30bb070cc
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoChange ipv4-source and ipv4-destination fields to the appropriate inet types, instead... 21/8421/1
Alex Fan [Fri, 27 Jun 2014 19:21:05 +0000 (12:21 -0700)]
Change ipv4-source and ipv4-destination fields to the appropriate inet types, instead of string.

Change-Id: I6b8c819661411e5a39803c19e61d147450d329f6
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding first-seen timestamp and last-seen timestamp for addresstracker model. 98/8398/1
Alex Fan [Fri, 27 Jun 2014 02:11:59 +0000 (19:11 -0700)]
Adding first-seen timestamp and last-seen timestamp for addresstracker model.

Change-Id: I1cdf780c20708b9f655ae21cb2416207a43f7b47
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoTransfer flow, topolology, & util classes from md-sal samples l2switch over to this... 97/8397/1
Alex Fan [Fri, 27 Jun 2014 01:09:29 +0000 (18:09 -0700)]
Transfer flow, topolology, & util classes from md-sal samples l2switch over to this project.

Change-Id: Ief20b3544a6f8f55dc5da9bd85e56e2e50aefce5
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRemove mac as key for addresstracker. 95/8395/1
Alex Fan [Fri, 27 Jun 2014 00:41:02 +0000 (17:41 -0700)]
Remove mac as key for addresstracker.

Change-Id: Ibd7e2b89b41e00eca86c03fc2fca1e032174fa21
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRefactored decoder models as per new design. Also modified abstract decoder to regist... 88/8388/2
Amit Mandke [Thu, 26 Jun 2014 23:32:08 +0000 (16:32 -0700)]
Refactored decoder models as per new design. Also modified abstract decoder to register conditionally.

Change-Id: Ia72cc805025c0f4b33f3a3bf9e4ddf4c6b3d0eb0
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoChanges for config subsystem and abstract decoder. 59/8159/1
Amit Mandke [Thu, 19 Jun 2014 22:56:54 +0000 (15:56 -0700)]
Changes for config subsystem and abstract decoder.

Change-Id: Ice69421367ed3dfae5ab04732b803233cbee5c21
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoAdding ipv6decoder module. 33/8133/1
Alex Fan [Thu, 19 Jun 2014 07:35:18 +0000 (00:35 -0700)]
Adding ipv6decoder module.

Change-Id: I5f520465bbc9d9c33311a844304b835ba0fcff94
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoChanging capital IPv4-packet to lower-case ipv4-packet in the yang. 28/8128/1
Alex Fan [Thu, 19 Jun 2014 02:05:05 +0000 (19:05 -0700)]
Changing capital IPv4-packet to lower-case ipv4-packet in the yang.

Change-Id: Ia00f28f867016f1028f956dbdf658ea5f2f42b0c
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding address-tracker.yang & renaming endpointtracker to addresstracker. 95/8095/3
Alex Fan [Tue, 17 Jun 2014 22:31:34 +0000 (15:31 -0700)]
Adding address-tracker.yang & renaming endpointtracker to addresstracker.

Change-Id: I9b550fd1238121181a973114514ec878bde46ec1
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRevert last commit. 01/8001/1
Alex Fan [Fri, 13 Jun 2014 20:14:08 +0000 (13:14 -0700)]
Revert last commit.

Change-Id: I78abfcd6dd3bc8b9f1df4535fefdd68170d30675
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoMerge "Removed ipv4decoder, arpdecoder, & ethernetdecoder modules from parent pom...
Alex Fan [Fri, 13 Jun 2014 20:04:50 +0000 (20:04 +0000)]
Merge "Removed ipv4decoder, arpdecoder, & ethernetdecoder modules from parent pom.xml.  Move ethernet files back into packethandler for end-to-end testing with mininet."

10 years agoRemoved ipv4decoder, arpdecoder, & ethernetdecoder modules from parent pom.xml. ... 00/8000/2
Alex Fan [Fri, 13 Jun 2014 19:58:42 +0000 (12:58 -0700)]
Removed ipv4decoder, arpdecoder, & ethernetdecoder modules from parent pom.xml.  Move ethernet files back into packethandler for end-to-end testing with mininet.

Change-Id: I8cfb3cfa78aecd6a69899176cc75249fe70e06ad
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agochange in comment 99/7999/1
Amit Mandke [Fri, 13 Jun 2014 19:55:25 +0000 (12:55 -0700)]
change in comment

Change-Id: Id10b1def8a8c59081302b6c2e5124caf296ccbb2
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoMove ethernet functionality to its own module "ethernetdecoder." 69/7969/2
Alex Fan [Fri, 13 Jun 2014 05:45:11 +0000 (22:45 -0700)]
Move ethernet functionality to its own module "ethernetdecoder."

Change-Id: Ic3221db9bb71389b156833c1229df2ee69707edc
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRenaming modules from *packet to *decoder. 67/7967/1
Alex Fan [Fri, 13 Jun 2014 01:55:36 +0000 (18:55 -0700)]
Renaming modules from *packet to *decoder.

Change-Id: I0f1c891d257dc6b54169014d608cd5eb299ec5d9
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRefactor one of the field names in ipv4packet yang file. 66/7966/1
Alex Fan [Fri, 13 Jun 2014 01:34:38 +0000 (18:34 -0700)]
Refactor one of the field names in ipv4packet yang file.

Change-Id: I6db4228aa942ae656a3886ab8cb822fae9062b95
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding ipv4packet module. 63/7963/2
Alex Fan [Thu, 12 Jun 2014 23:21:07 +0000 (16:21 -0700)]
Adding ipv4packet module.

Change-Id: I83fde928df7750ebb91c6922c3d6ef0469f7e3ca
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agominor refactoring in yang models and member name changes 60/7960/1
Amit Mandke [Thu, 12 Jun 2014 21:23:02 +0000 (14:23 -0700)]
minor refactoring in yang models and member name changes

Change-Id: I454d2db00d612c0a925d29bbeb1688adda1b5033
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agorefactored decoder framework so that multilayer decoding can be done. 23/7923/2
Amit Mandke [Thu, 12 Jun 2014 02:33:11 +0000 (19:33 -0700)]
refactored decoder framework so that multilayer decoding can be done.

Change-Id: I7312d534d02b6fb907c7dc2e679deef8f76995d7
Signed-off-by: Amit Mandke <ammandke@cisco.com>