11722 Commits

Author SHA1 Message Date
Jian Li
a9a77cab03 Fix the maven build problem caused by incorrect protobuf model
Change-Id: Ifda88b64710802ad3291362a8618969f4c63ed83
2017-12-08 03:21:58 +09:00
Jian Li
21fa4feb22 Refactor several gRPC translator by removing annotation redundancy
Change-Id: I895d06183857ec74272287d904163f1d7d31d269
2017-12-07 07:03:21 +00:00
Jian Li
d8e720718d [ONOS-7233] Refactor gRPC device service and translator
Change-Id: I6aadd6cbfc8adaf97258d6f54dc022f5e90aaa9e
2017-12-07 06:46:50 +00:00
Jian Li
ec80a3392a [ONOS-7233] Add MastershipRole protobuf model with translators
Change-Id: I02168e91d45c61593a02702b7a05a9810424a2c2
2017-12-07 06:09:26 +00:00
Yuta HIGUCHI
448e68499f Fix pom inconsistent with project structure
Change-Id: Ie662958c28fd3ee6bd05c7c9497491f848fbb6fa
2017-12-06 18:59:01 +00:00
Yuta HIGUCHI
fc66705fcb Step to rationalize rest SBI
- Only update device, which configuration changed,
  not walk everything everytime
- workaround to handle cases where username can be null or "".

Change-Id: Iaeda3dbe3cae20c3248735a1c318f4ace40e0c46
2017-12-06 18:28:29 +00:00
Yuta HIGUCHI
872fdbed05 Remove deprecated RestProviderConfig
Change-Id: Icd30ef5802ecd60f03ea1c3cf9cf3dc9e224edab
2017-12-06 18:28:25 +00:00
Jordan Halterman
df43e1655c Upgrade to Atomix 2.0.10
- Fix hanging at startup on very large clusters
- Handle ClosedSession exceptions in retrying primitive proxies

Change-Id: I3b9008b84f1be34e71360b066131bf7d3f32c692
2017-12-06 17:24:07 +00:00
Saurav Das
f14d9ef158 Fix for empty flooding groups due to bucket add/remove commands being reordered, and
triggered by port up/down events very close to each other.

Change-Id: Ibbd7cc6eb6df35396175619d95439acd6da904b8
2017-12-05 18:35:20 -08:00
Lee Yongjae
7c27bb4b38 Initial commit of SimpleFabric application
Change-Id: Ia491aa6ad1b15576a54803decfee54aa8c1d1d6a
2017-12-06 00:15:58 +00:00
Yi Tseng
92494fb09a
[ONOS-7289] General device should be available by default
Change-Id: I38245b9e575f6939336ce5c222c7f0457152b3fe
2017-12-05 15:14:53 -08:00
fahadnaeemkhan
02ffa7120d added OAuth2 authentication for REST protocol
Change-Id: I3b8f3943ea043587730870a0b861760a4d6f3aa7
2017-12-05 14:33:19 -08:00
Thomas Vachuska
28d4657304 Changing cell configuration to reflect the move to flex data center.
Change-Id: I0b3710b8e9b329b62a765ac87a269cd7aac4d7dd
(cherry picked from commit d2535d768d7b0c2385c907e060fe6e5ded899942)
2017-12-05 21:40:35 +00:00
Ray Milkey
b04f265d81 Fix error-prone reported problems
- equals() method was comparing metric to itself
- toString() was using the toString value of an array

Change-Id: I5da31f7b3b56ee78cf8d272abdf0214d11863880
2017-12-05 11:40:20 -08:00
Yuta HIGUCHI
e34c9c2989 minor netconf related fixes
Change-Id: Ie62c2c4f12cc672d1b5aec8feb4911e8393c6438
2017-12-05 18:30:24 +00:00
wei wang
d271fbc05a Update netconfig xml for Oplink device
Change-Id: Idaab45c053bd65e37e2bc4065a617af4ae7510fe
2017-12-05 18:10:19 +00:00
Jonathan Hart
8ca2bc0447 Small updates to SR to get it to ignore devices not configured as routers
Change-Id: I2c0f695af1a6eab10607a8117faae5f6161a66d9
2017-12-05 00:17:00 +00:00
Gaurav Agrawal
003213301f [ONOS-7278] Fix for Rpc.
- use qualified name for handlerRegistry key
- stop creating executor on every rpc call
- removed unused method

Change-Id: I2637b8443629e3fbae354d1e6af8639c6047ef8a
2017-12-04 22:49:45 +00:00
Jordan Halterman
bd93aa665a Upgrade to Atomix 2.0.9
- Fix UnknownSessionExceptions
- Fix OutOfDirectMemoryErrors
- Ensure leader timeout is recurring
- Fix exceptions thrown during Raft startup communication
- Ensure sessions are only expired by leaders once

Change-Id: I856cb0840b3b609f5a3481567a4c367c8e6c9aae
2017-12-03 22:30:04 -08:00
Charles Chan
eeb10fc7f8 NDP_HOP_LIMIT should be 255(10) instead of 0x255(16)
Change-Id: Ia718f353941fae492e7b3ca1f5c5b2aa142faf1b
2017-12-03 13:42:50 -08:00
Ray Milkey
55f513ff29 Fix NPE in LLDP link provider if there is no cluster metadata service available
If the cluster metadata service was previously shut down, the buildSrcMac()
method would throw an NPE. Now it returns the default mac if there is no
cluster metadata service available.'

Change-Id: Ibdb9b0b059a532af651814b8b954355ce644e4da
(cherry picked from commit ffde7afaec90e5741f66dfd26cc97600b29d91bb)
2017-12-02 01:20:25 +00:00
Yi Tseng
3bd57ac6c8 [CORD-2320] DHCPv4 thows an exception when no indirect DHCPv4 server is configured
Change-Id: I516a75f1108ca1245267a45b805153e5eba003d8
2017-12-01 14:44:47 -08:00
Yi Tseng
dbabeed740 [CORD-2316] DHCP relay should ignore the DHCP packet if configed instead of drop it
Change-Id: Iebaf7130c0945ec5850b2e25d28d7aa33b9f9db3
2017-12-01 21:55:00 +00:00
Ray Milkey
fa89f2a641 Fix NPE in PacketManager
This happens when a device event comes in when there
is no device service available.

Change-Id: I50ea44da433979ef0a3a238b22d295e671849ff4
2017-12-01 20:47:55 +00:00
Jon Hall
83300ca763 Add missing command argument to help
Change-Id: If1a1284e3402fc3035c20f20baabda0aef105276
(cherry picked from commit 30a6031e227729d0c53e26b80b7050b662591245)
2017-12-01 20:27:58 +00:00
Jordan Halterman
bc0308fe4a [ONOS-7243] Check for existing device master before attempting to acquire mastership to mark device offline
Change-Id: I11c1b173d2bb7d866889d0d6d42b9e7e702c2e79
2017-12-01 20:02:23 +00:00
Jovana Vuleta
c884b69abc ONOS-6825: added OFAgent tracer
Change-Id: Ib04184b5fe108c636f8fb9c4b721a1004b72c0a7
2017-12-01 18:19:22 +00:00
Andrea Campanella
5a3c09c9b9 [ONOS-7279] Fix for illegal state exception when deactivating driver providers
Change-Id: I9a8c16e33cac40b91c2b6f405e66f94bcdf5e0e0
2017-12-01 13:57:48 +01:00
Charles Chan
f32d854fe4 Fix CORD-2326 Dual home host loses one of its location when its name being changed in GUI
Change-Id: I9e5500cca4aeda66ad6cef781d5552f9ec0609ec
2017-11-30 22:08:17 +00:00
Jordan Halterman
2b7501ca8e Upgrade Atomix to 2.0.8 and simplify consistent primitive operation/event IDs
Change-Id: I33b68a134a7f3d016a8947bffc3cea0b90bd4bd2
2017-11-30 13:31:43 -08:00
Yi Tseng
f55eaa8112 [ONOS-7255] Remove next id mapping table from fabric.p4
Change-Id: Ibcdc49f7c802cb4a4175d51314713725d8b05a77
2017-11-30 21:16:25 +00:00
Claudine Chiu
6cbce02de2 ONOS-7276 OFAgent - fix ItemNotFoundException when processing FLOW_MOD message
Change-Id: I43c21b871dbf128ba97969987311a1c51a1820ae
2017-11-30 20:47:45 +00:00
Ray Milkey
cbf9917ca8 Bump up ONOS to version 2.3.1 of yangtools
Change-Id: I96c3ce7672df6c11f9049eb8462b395b75087da2
2017-11-30 20:05:56 +00:00
Jordan Halterman
a02bb6d9d3 [ONOS-7277] Use thread safe list for OF ports to avoid ConcurrentModificationException
Change-Id: Iada077126401ddb12e049b72890f82bf7948827b
2017-11-30 19:35:17 +00:00
Charles Chan
807d87ad82 Changing two more component configs in segment routing
Set linkStaleAge to 15 seconds: prevent link down event during mastership transition in HA scenario
Set allowDuplicatedIp to false: cleanup IP when a new container is launched with same IP but different MAC

Change-Id: Ic2a9f87179de367c2ff84b232ca7f8ca3e152715
2017-11-30 10:44:38 -08:00
Carmelo Cascone
e75b794aa4 ONOS-7050 Refactored P4Runtime GP to use distributed stores
Change-Id: I155bd0d848bfad2a198d220fcb35ab2ad2daa56a
2017-11-30 09:43:35 -08:00
Carmelo Cascone
6a0b5a3c95 ONOS-7050 Refactored P4Runtime FRP to use distributed stores
It uses the PI translation store and a newly introduced P4Runtime device
mirror.

Change-Id: Id2031af5e9bbdc8be4ec6967b867f97d35d54ab0
2017-11-30 17:42:04 +00:00
Carmelo Cascone
326ad2dd29 ONOS-7050 Refactored PI translation service and store
The translation store is now able to maintain mappings between
translated entities and specific instances of a PI entry in the network
(i.e. applied to a device).

The translation service has been refactored to allow users to
learn and forget translated entities.

The refactoring of the P4Runtime driver using this service will be
submitted separatelly.

Change-Id: Iaafd87d90232514853ca0dea0115dbae4f6e7886
2017-11-30 09:40:40 -08:00
Yi Tseng
e2a1500ce0
[ONOS-7267] Fix pipeconf UI
Change-Id: I120fb7174d4033bd818fcc94e27a5e09d4f7c17d
2017-11-29 16:42:52 -08:00
Ray Milkey
017fe3e21a Removed parallel buck steps
- unit tests and java doc are now sequential

Change-Id: I10ea0b95cab8d245758a40f5945f799b9220458b
2017-11-29 23:18:22 +00:00
Ray Milkey
8d05a4ca5e Add a node reference to agent ubuntu16.04-basebuild-8c-15g node
Change-Id: I3c6bdd52580c0797ea8abcf6947a607f5f46d942
2017-11-29 23:18:08 +00:00
Yuta HIGUCHI
820f034f98 Fix few commands handling PortNumber as args.
- should now be able to handle named ports

Change-Id: Ic913f2ac8e1cfd7a0fa2a7631bd5c207b9747eee
2017-11-29 17:42:26 +00:00
mskala
c584bd9278 [ONOS-7269] Additional annotation about OpenFlow port status
Change-Id: I9a1b3cede47316c372322af68dc652d4f372f9fb
2017-11-29 17:35:26 +00:00
Thomas Vachuska
5ca0f7ad6b Enhancing diagnostic and test facilities for troubleshooting
- added new CLI to list driver providers
- added ability to power on/off borrowed cells
- enabled ONOS service to restart on boot/death

Change-Id: Ifc889cdbc0740e5d3286c9836dfecc38d458bbc5
2017-11-29 17:25:43 +00:00
Andrea Campanella
14e196dbcd [ONOS-6810] Implement Mastership handling in general DeviceProvider
Change-Id: I14b706d364cf5124da248230fbcda65d0bd284ce
2017-11-29 10:14:31 +01:00
Vidyashree Rama
6987e0e76c register ietf-system from models/common
Change-Id: Iea563f63ac61109143481f19466ef7191ccf37d7
2017-11-28 19:06:28 +00:00
Sean Condon
cf2751f673 Fix for Microsemi Unit tests
Change-Id: I1e94c85d19de53f82eb7fc657fff42535dafd9f5
2017-11-28 19:06:15 +00:00
Laszlo Papp
b68fe7e441 Trace messages via openflow
Change-Id: If823a75a35501914dc7da265b177cac81d8238ac
2017-11-28 18:37:21 +00:00
Palash Kala
a06a61694c ONOS-6950 Annotate device through network configuration
Change-Id: I39d5ca39667bb1478a090408ff3c1af33220a0b2
2017-11-28 18:02:40 +00:00
Brian O'Connor
bd0e720a4a Fixing checkstyle test hang with nc version >= 1.110
netcat (nc) 1.110 changed the behavior of how sockets are closed when
stdin is at EOF or closed. Previously, nc would call shutdown (TCP FIN
on the write side of the socket) when the end of stdin was reached.
Now, shutdown is only called if '-N' is passed as an argument.

This change was introduced into Ubuntu's fork of OpenBSD nc in Nov. 2016.
So, the affected versions were Ubuntu 17.04+ as well as any other
distribution that uses nc >= 1.110.

This change of behavior causes the call to ByteStreams.toByteArray()
to hang indefinietly, and thus checkstyle tests to hang indefinitely.

Rather than try to figure out which version of nc is present and set
the -N option, we will use an empty line as a sentinel and stop parsing
input when the first empty line is encountered. For this, we need two
changes: (1) send a newline when checking the socket in start-buck-daemon
and (2) send a newline at the end of the file list in onos.bucklet

We also set SO_TIMEOUT to 1 second and will return an exception if
the socket times out. This will prevent tests from hanging indefinitely.

Change-Id: If46b4b78ae89312e1afa0563f63100ae67762f0a
2017-11-27 19:04:44 -08:00