469 Commits

Author SHA1 Message Date
Yi Tseng
46654c3307 [CORD-1113] Fix race condition problem of DistributedRouteStore
Race condition happened if one node add event listener after other nodes
send event.

The local route table might not be initialized correctly

Change-Id: Id6ff1344897e36d7d48ccf36b1b0b843ea2e9d09
2017-08-09 21:27:25 +00:00
Ray Milkey
a9ae0d41f1 ONOS-6889 Move mcast from incubator to core
Change-Id: Icfc7294e7017b640321dd9343778cd11c2cd0cb8
2017-08-09 15:15:32 +00:00
Jian Li
485a2cd103 Refactor gRPC northbound device service
Change-Id: I2f15074ab086f9a5e3294b49e09976f0dd77f51e
2017-08-08 09:58:49 +00:00
Jian Li
f8e9fb6d43 [ONOS-6684] Add Application message type in protobuf model
Change-Id: I2bcb4f4f6b41e648072d5c0f6b363c7431fc7ce7
2017-08-07 10:28:03 +00:00
Frank Wang
73f0ffd45c [ONOS-6707] Host Protobuf model
Change-Id: Id036c13a92ac629465eddfc7c695c55086c3d5c0
2017-08-07 08:19:28 +00:00
Ray Milkey
b65d7844e2 ONOS-6887 Move neighbour classes from incubator to core
Change-Id: I5fa70253b833838566a3527d8938e04be4274210
2017-08-06 19:46:25 -07:00
Ray Milkey
facf286f9c ONOS-6886 Move interface classes from incubator to core
Change-Id: Iaae4d98279e4b77fc3f0b5a63d547921f93aeb46
2017-08-06 16:38:19 -07:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Ray Milkey
e56c34d941 Move ComponentService from incubator into core
Change-Id: I23f22fde87f689d2ff54888b43139f32c3d182f0
2017-08-04 03:08:30 +00:00
Carmelo Cascone
2cad9efec5 Various fixes to get a P4Runtime demo that works
Change-Id: Icab512fceeb6ec0faf1b402c1e325e055cdb2caf
2017-08-03 16:17:58 +02:00
Charles Chan
4f365737b0 Implement route-store command
An easy way to quickly check the running route store implementation

Change-Id: I24830976ddbf772ba47eb4d322357909be6677fd
2017-08-01 22:27:38 +00:00
Andrea Campanella
75ef9f5c51 [ONOS-6844] inject ports via net-cfg
Change-Id: I3052e8b43fd26960b111200d6e506fd91e1f01fd
2017-08-01 22:00:30 +00:00
Ray Milkey
64677e99d9 Starting snapshot 1.11.0-SNAPSHOT 2017-08-01 10:48:08 -07:00
Ray Milkey
17463db855 Tagging 1.11.0-b3 2017-08-01 10:46:24 -07:00
Jordan Halterman
f70bf462f8 [ONOS-6756] Replicate node version information for ISSU
Change-Id: Ibd31c573990f2732b7abf8615ca914ffb77615ec
2017-08-01 16:03:57 +00:00
Yi Tseng
7a38f9a35b [CORD-1434][CORD-1112] DHCP relay manager
Change-Id: I2e4d8fc8e85ed66b33ac517660ee72a1c0183597
2017-07-21 03:06:06 +00:00
Ray Milkey
64313cbc83 Starting snapshot 1.11.0-SNAPSHOT 2017-07-20 15:46:52 -07:00
Ray Milkey
7e28519e5f Tagging 1.11.0-b2 2017-07-20 15:45:28 -07:00
Carmelo Cascone
31d3e44192 Better handling of extensions in PiPipeconf
Now built using a URL, while input streams are generated on-demand.
Before it could happen that the input stream was completelly read by
someone, leaving it unusable by others.

Change-Id: I61a76bf8b8c1d2f6e2d987661025e0323d59e1c7
2017-07-19 19:17:15 +00:00
Carmelo Cascone
07d72718b9 ONOS-6555 Default pipeconf implementation and builder
Change-Id: I80ac4f6e939d30a943653a1d63d5cff07b368620
2017-07-17 14:51:51 +00:00
sangyun-han
43c567080a Fix typo
Change-Id: I8efffd69696bf33f1e08c12999ffe65570b86176
2017-07-15 15:06:17 +00:00
Frank Wang
f37de77acf [ONOS-6702] ConfigProperty Protobuf model
Change-Id: Ida520bf97f09c8acfd7fcdc5081023117fe6737b
2017-07-14 20:29:23 +00:00
Jian Li
7d6875cf70 [ONOS-6687] Add ApplicationRole enum type in protobuf model
Change-Id: I10919eeffbc57f6ca75a58e4c6a3ceecff780f1f
2017-07-14 18:09:08 +00:00
Jian Li
1025bdb91c [ONOS-6699] Add ApplicationState enum type in protobuf model
Change-Id: I4315ea7b7207d42a4404ca2795a1891c4ac80b28
2017-07-14 18:08:46 +00:00
Frank Wang
ac3bca0ce6 [ONOS-6708] HostLocation Protobuf model
Change-Id: Idbebf419e6023dfd5ecec488d26c41a57f8f9c8a
2017-07-14 18:05:11 +00:00
wu
312f124a4b ONOS-6714 DisjointPath Protobuf model
Change-Id: I7d37ca07531c2e6fe52b1a3bc84388e3a59d2c03
2017-07-13 07:21:59 +00:00
wu
c4ae94d4e3 ONOS-6713 Path Protobuf model
Change-Id: I8c6c7215ee980938c26609fa400b08a8f01a7579
2017-07-13 07:21:04 +00:00
Jian Li
0cf7523d61 [ONOS-6688] Add Permission message type in protobuf model
Change-Id: Iaad4783eba0a5d318c7b8a458c44a857f393b220
2017-07-13 01:05:56 +00:00
Jian Li
8ea7dc4438 [ONOS-6685] Add protobuf model for ApplicationId
Change-Id: Ied2933943bc1344302b3bcc1e6c8031c5527b5e8
2017-07-13 00:32:05 +00:00
Carmelo Cascone
f7aa3f947f ONOS-6559 P4Runtime protocol library
Change-Id: I7070b69507dcf2ca47ee1c446bcc2505ca868fb1
2017-07-12 16:44:04 +00:00
Jian Li
c9b4bf1f61 Refactor protocol buffer to split models into different packages
Change-Id: I26152ba227ebe9afd871c6e501ccca17c49e1e4e
2017-07-11 23:18:30 +00:00
Carmelo Cascone
569d4ad93f Bumped version of P4Runtime and P4 tools for dev VM
+fixed protobuf version according to p4c documentation.

Change-Id: I16471b70b9b2ebc0e0a30c733f1e6ce47d40e30b
2017-07-10 16:24:53 -04:00
Ray Milkey
f14cc6d3c2 Fix SNAPSHOT version string
Change-Id: I090c1998e5a117c10263b7a6abbffc624beb4074
2017-06-28 16:36:27 +00:00
Jordi Ortiz
205af45f1c ONOS-6625: Remove meters from device not present in onos
Change-Id: I857daf1176a2242b88c5acd9d6aae82331327dd4
2017-06-28 15:58:47 +00:00
Jordi Ortiz
9287b639aa MeterManager optimiziation. Use entryset instead of keyset avoiding some store access,
also add MeterStore getAllMeters(DeviceId).

Change-Id: I8dac9558cdb8b5c758e0e402cd0724c6cae16daf
2017-06-28 15:58:47 +00:00
Carmelo Cascone
1d5fc722c4 Repackaging of gRPC 1.3.0 via BUCK build
Needed to solve the OSGI split package issue

Change-Id: Id77e77854afe163e33ed9a3798cb430f507eb27f
2017-06-28 14:39:41 +00:00
Ray Milkey
b5dcc93520 Unhook failing parts of the maven build
Change-Id: I44c5c6e065ba6036be86e8a96e3a02306c6aa447
2017-06-26 17:12:44 -07:00
Ray Milkey
7463193198 Starting snapshot 1.11-SNAPSHOT 2017-06-23 16:46:27 -07:00
Carmelo Cascone
65f98ff1e9 Support for the protobuf standard lib in gRPC buck tools
Required for building P4Runtime stuff.

Also:
- support in grpc_jar for building external protobuf files
- minor code refactoring/cleanups

Change-Id: I50c09f967cc9257366eb028d4ea1502767d8d4a0
2017-06-23 20:20:16 +00:00
Aaron Kruglikov
9f95f99a0e Refactoring file structure for protobufs.
Change-Id: I50daf100d54750f97158304d87813e67861b1422
2017-06-23 17:19:50 +09:00
Jordi Ortiz
58d5ec0e81 FIX: Onos is reinstalling the meter to the switch when in PENDING_REMOVE state
Change-Id: I35454d519cc66abfe8ca2ae6b07a91899ff34a64
2017-06-22 09:13:26 +00:00
Yuta HIGUCHI
dc13d39f47 Fixing pom.xml
- onos-core-net was failing due to dependency to incubator-bmv2-model

Change-Id: I3ae0989b1f601c754af495a59e6be88bc474e78d
2017-06-21 17:42:13 -07:00
Jonathan Hart
89ef158917 Remove deprecated RouteService APIs.
The goal is to clean up the interfaces a little bit in preparation for
a major RouteService refactoring that is coming.

Change-Id: Ifbde9a507dd0dc3cddcd7fa1c02c426dad386e5f
2017-06-21 22:46:08 +00:00
Carmelo Cascone
00a5996a23 ONOS-6605 PI flow rule translator implementation
Change-Id: Icac66f17677c494152207f4b52355ad647e1227b
2017-06-21 20:29:45 +00:00
Harold Huang
222c6ecc57 [ONOS-6549] (vNet) Balance role commands for virtual netwrok
Change-Id: Iadf22cd735bed0b055ada5542be8b1d2edb8188e
2017-06-16 15:01:54 +00:00
Harold Huang
e86d35fb56 [ONOS-6627] Revise adding and removing packet processor for virtual network
At present, we have to use requestPackets to trigger adding packet processor for virtual network and use cancelPackets to trigger removing the packet process for the virtual network.
But if we call cancelPackets more then one time in the deactivate() method when the application is deactivated, if will throw a NullPoint exception.

Furthermore, if a user does not requestPackets() in the application, the packet processor will never be added.
It may be a confusing trouble for a tenant user.
As a result, I think the packet processor should be created when the virtual network is added and be removed when no virtual network exists.

Soultions:
Listen to the network event to add and remove packet processor for virtual network.

Change-Id: I583d453219bef2f271b4a1e96f9869a28b4f0250
2017-06-16 05:14:22 +00:00
Jonathan Hart
d4be52fdcf Clean up routes when the ONOS node they were sourced from goes down
Change-Id: I1b70e087b64404bf92e6251d18f3c85791e30583
2017-06-15 17:29:58 +00:00
Yuta HIGUCHI
9312a80bdd Fix checkstyle buck daemon issue
- checkstyle buck daemon was not processing a file listed at end of the list.
- fix issues, which hasn't been detected due to above bug
- cosmetic fixes

Change-Id: I15f24311835726757f0974b7e5c12ff1c79a3d4e
2017-06-15 16:41:40 +00:00
Harold Huang
bee92f62f7 [ONOS-6616] Revise VirtualPacketContext and DefaultVirtualPacketProvider
The constructor of VirtualPacketContext needs a parameter of DefaultVirtualPacketProvider type.
It is not flexible for us to use another packet provider to replace the default virtual packet provider.

To improve the code flexibility, I think it is better for us to use an interface type parameter in a method.

It alse seems redundant to use emit() method of DefaultVirtualPacketProvider in devirtualizeContext().
Thus, I think it will be more efficient to use core PacketService in VirtualPacketContext
when triger send() method.

Some other bugs are fixed.

Change-Id: I161a8929dc4e5a1d2ad716bc5da8b0b6f84340a9
2017-06-15 15:17:40 +00:00
Yi Tseng
f33c077c0e [ONOS-6554] Implement BMv2-JSON-to-PiPipelineModel parser
1. Create new module incubator/bmv2/model
2. Move all bmv2 model files to incubator/bmv2/model
3. Using PI core interfaces for all bmv2 models
4. Refactor original bmv2 config parser (Bmv2PipelineModelParser)
5. Refactor original bmv2 config parser test

Change-Id: I0db07762d76ab6e2f846e9c3c9d5896f0cbea7f2
2017-06-15 08:34:35 +00:00