l2switch.git
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>
10 years agoAdd arppacket to pom.xml. Fix ArpDecoderTest package. 84/7884/2
Alex Fan [Tue, 10 Jun 2014 20:55:38 +0000 (13:55 -0700)]
Add arppacket to pom.xml.  Fix ArpDecoderTest package.

Change-Id: I28c941f66734a22d101181e2df3a91b5789d0dcb
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoARP Packet Activator. Also, fixed some of the package names. 83/7883/1
Alex Fan [Tue, 10 Jun 2014 20:50:47 +0000 (13:50 -0700)]
ARP Packet Activator.  Also, fixed some of the package names.

Change-Id: Ica96347da0adbe4aa203b471db7a191562938043
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoadding unit tests for decoder framework 40/7840/1
Amit Mandke [Mon, 9 Jun 2014 22:56:58 +0000 (15:56 -0700)]
adding unit tests for decoder framework

Change-Id: I923d74c21d242fc0dce58a875136aa7c6ce27bde
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoMoving arp-packet to its own module. 60/7760/1
Alex Fan [Fri, 6 Jun 2014 04:23:43 +0000 (21:23 -0700)]
Moving arp-packet to its own module.

Change-Id: I758db4c627945f397d66889d0aa84312063883f1
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoImplemetation for packet decoder framework. 57/7757/1
Amit Mandke [Fri, 6 Jun 2014 01:48:14 +0000 (18:48 -0700)]
Implemetation for packet decoder framework.

Change-Id: I8b74522cccc731ffd44031ca6d4dddf23c74b13e
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoMake ipv4 packet "use" ethernet-packet. Also add arp-packet support. Fix return... 54/7754/2
Alex Fan [Thu, 5 Jun 2014 22:11:00 +0000 (15:11 -0700)]
Make ipv4 packet "use" ethernet-packet.  Also add arp-packet support.  Fix return argument in PacketDecoder.

Change-Id: Iba227ee75d7a3226ae49b45480bd5afbdde18264
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRefactor the yangs for conflicting fields. 25/7725/1
Alex Fan [Thu, 5 Jun 2014 09:14:37 +0000 (02:14 -0700)]
Refactor the yangs for conflicting fields.

Change-Id: I71c824413a3608ee413ec5bca4e974dd7e3dc5cc
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoInitial interfaces for decoders and some refactoring. 02/7702/1
Amit Mandke [Wed, 4 Jun 2014 22:16:48 +0000 (15:16 -0700)]
Initial interfaces for decoders and some refactoring.

Change-Id: I59205d0e922cb2ff7dbd985e8daed7622a541625
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoChange the method signature to RawPacket, instead of byte[]. 01/7701/1
Alex Fan [Wed, 4 Jun 2014 21:50:11 +0000 (14:50 -0700)]
Change the method signature to RawPacket, instead of byte[].

Change-Id: I6bc0a7faa2dbde8697faff5a0f25db865e9138ea
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoHandle Q-in-Q case, not just single 802.1Q header. 99/7699/1
Alex Fan [Wed, 4 Jun 2014 21:03:23 +0000 (14:03 -0700)]
Handle Q-in-Q case, not just single 802.1Q header.

Change-Id: Idc4032b2e11376673bc0ed6e94bfebe1577d9c85
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoRemove contact info from pom.xml & fix version inheritance. 97/7697/1
Alex Fan [Wed, 4 Jun 2014 20:01:53 +0000 (13:01 -0700)]
Remove contact info from pom.xml & fix version inheritance.

Change-Id: Iba2dd49409e3f8f41106d3851d1f3336c92b3207
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdding yang files for ethernet packet. 27/7527/12
Alex Fan [Wed, 4 Jun 2014 02:14:57 +0000 (19:14 -0700)]
Adding yang files for ethernet packet.

Change-Id: I546340229a1cf07bd8a53c24680b07b75c26fa23
Signed-off-by: Alex Fan <railor33@gmail.com>
10 years agoAdded repository and distribution management 14/7614/1
Amit Mandke [Mon, 2 Jun 2014 22:46:19 +0000 (15:46 -0700)]
Added repository and distribution management

Change-Id: I8f2b8e37dc54450335db6848f702d91cc0cd11a8
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoCreating initial project structure and pom files. 69/7469/1
Amit Mandke [Wed, 28 May 2014 22:20:56 +0000 (15:20 -0700)]
Creating initial project structure and pom files.

Change-Id: I568cead03eed949ea59690ecbafa1f16d7b12904
Signed-off-by: Amit Mandke <ammandke@cisco.com>
10 years agoInitial empty repository
Aric Gardner [Thu, 22 May 2014 17:55:56 +0000 (17:55 +0000)]
Initial empty repository