15 Commits

Author SHA1 Message Date
Ray Milkey
15053f0fca buildifier formatting of bazel files
Change-Id: I8196aa52ee640d1c500307a50a0ab4921138b69b
2018-06-13 17:57:14 +00:00
Ray Milkey
02a658bb4a Build segment routing app with bazel
- add support for apps depending on other apps
- build files for route-service and segment routing

Change-Id: I4850aacfe050f802072e2d59a6a21bcefd784e67
2018-06-13 16:23:14 +00:00
Andreas Pantelopoulos
5bf1366410 Various pseudowire fixes and improvements.
- Co-ordination when creating - removing pseudowires from
  different instances with a use of a DistributedLock.
- Fixed REST API To return json with specific error for
  the single pw instantiation.
- Fixed REST API to return specific error also for pseudowires
  that could not be decoded.
- Minor bug fix to return appropriate error when instantiating
  a pw from the command line that could not be decoded.
- Fixed bug when creating spine-leaf-leaf pseudowire where we observed flows in pending state.
- Improved logging.

Change-Id: I60dd0ebf8af63ca74d18cfe4801d01846641fb7b
2018-06-13 02:22:58 +00:00
Pier
b1fe738936 [CORD-2903] Improve SR/Multicast APIs
Change-Id: Id44af87569e0a83129c96504b21c69e1d455f785
(cherry picked from commit a2858a34a26e02e9d2dd66dc562d0f6fb2c4bdd1)
2018-04-19 06:41:40 +00:00
Ray Milkey
bca9049101 Starting snapshot 1.14.0-SNAPSHOT
Change-Id: I97bab4e31d2b701f015289eae29d0c58a4937685
2018-04-13 12:47:31 -07:00
Laszlo Papp
c5e85bbfd9 Use apache commons Pair instead of javafx
It looks like javafx does not have Pair when using OpenJDK.

Change-Id: I3379dc87e0515185714b28ca0832a36b76b0772f
2018-04-04 16:58:06 +00:00
Andreas Pantelopoulos
ffe69743e0 Better error handling in pseudowire implementation.
I refactored the pw handler to return meaningful very specific
errors for failures. As a result, I modified also the cli and rest
api implementations to use these fine grain errors accordingly.

Change-Id: I2429532f747c4560378c40be325b039ca0f5c925
2018-04-04 00:16:14 +00:00
Ray Milkey
86ee5e8711 Upgrade fasterXML libraries for OS-9
Upgrade fasterXML to version 2.9.5 to address security vulnerability
Wrap calls to treeRead(InputStream) to handle new behavior of null streams

Change-Id: Id199cfacd0cf9e5371dc33de9f1e058c2e72eaa5
2018-04-03 16:49:03 +00:00
Andreas Pantelopoulos
811bbaef85 Pseudowire enhancements :
- Fix bug for transporting l-s-s pws tagged.
  - Refactored and cleaned code.
  - Refactored cli commands.
  - Fixed bug in bulk rest api when the same pseudowires were tried
    to be added.

Change-Id: I28ded776266a08110922b93a8b330d0b343d470d
2018-03-15 20:02:52 -07:00
Ray Milkey
b994f8d06e Sonar wants switch cases to end with a break statement
Change-Id: I6d21404114460b19177d3865f9e3b0eba016bc6d
2018-03-14 09:55:13 -07:00
Andreas Pantelopoulos
ff691b7f63 Implemented the following PW features and fixes:
- PW support for H-AGG topologies. Support for leaf-spine-spine
     leaf-spine-spine-leaf pseudowires.
   - Renamed pw commands with sr-pw-* pattern and also removed redundant output
    from them.
   - Enabled bulk addition / removal of pws from the rest api.
   - Modified diagnostics tool with the updated command name.

Change-Id: I708db9281d0082b160cbd713910b420ef7df9da3
2018-03-14 00:55:56 +00:00
Andreas Pantelopoulos
e1c8e450be Removed package-info.java from segmentrouting/web.
This file was useless and created problems in Eclipse.
mvn was not building all the project in my machine, however,
segmentrouting built just fine.

Change-Id: I8c2832249c3d3c28db59daa6ffbadc8cdd3669ec
2018-02-28 17:55:01 +00:00
Andreas Pantelopoulos
cd3395992d REST API for pseudowire addition / deletion.
Refactored pseudowire code to use REST in order
to add or delete pseudowires individually. Previous implementation
used the network configuration, which is now completely
removed from the code. Further, I re-organized the code
and create a utility class that holds all the necessary
functionality for verifying pseudowires.

Further, I removed all mastership checks in the pw code
since now a specific pseudowire creation is sent to a single
instance, which will handle the call.

Change-Id: I1eb5e7cc7730ad792ea84dd389475768153e2b68
2018-02-27 00:24:24 +00:00
Andreas Pantelopoulos
8500118d79 Maven build for sr application.
Added pom.xml files for building sr with maven after
refactoring the code of the application.

Change-Id: If903b03e00fa953ba0cc12f4b9c3ed5c5367f3cf
2018-02-26 20:12:18 +00:00
Andreas Pantelopoulos
4e6d8b2d94 Refactored sr app to enable rest api.
The segment routing application structure has been refactored
to the following structure :
	sr
	 ---- app
 	 ---- web

web folder contains the rest cli implementations while app folder
contains everything else. Originally I tried to split the application
in api / app / web, where api would contain all the interfaces. However,
that was not possible due to the fact that most of the classes do not implement
any interfaces and app -- api would result in circular dependencies and we would
not be able to build them.

Change-Id: Ifaaeefe2c5061c8457924ccd01678fb18966c44f
2018-02-23 11:34:39 -08:00