27 Commits

Author SHA1 Message Date
Pier
3ee2455530 [CORD-2838][CORD-2833] Revisit McastHandler and handle shortest paths with pair links
Includes also a refactoring of the path computation

Change-Id: Iff63780a3bb3e895e55c52211290c19d993e1905
2018-04-05 11:24:33 +02: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
Andreas Pantelopoulos
27532cd2f9 Added basic pseudowire support for Trellis.
- Configurable pseudowires supporting untagged-untagged, single-single, double-double tagged traffic.
- Commands for listing, adding and removing pseudowires.
- Initial support for link failures.
- Pseudowires also configurable by network configuration.
- Tested with ofdpa_3.0.5.

Known limitations that I plan to fix soon :
	- Adding pseudowires from configuration is inconvenient because we need to ammend new pws to the
	  existing configuration. We should create a REST API for adding/removing/listing pws and abandond the
	  network configuration.
	- Spine fabric switches have rules matching a special mpls tag used for pw traffic for a specific leaf.
	  However, this rules redirect to an "indirect" group for forwarding traffic. If the resulting port there
	  is no mechanism as of now to handle this. We should use the MPLS ECMP Groups of ofdpa, however they are
	  not functional. Thus, we need to inject logic into the application to handle this case.

Change-Id: Ia85cf4514ebab627fc6ed5a19ad9f6cdc67dc24c
2017-11-17 19:49:12 +00:00
Simon Hunt
5789e1ca61 Port Authentication Tracker - initial cut.
- With unit tests for behavior.

Change-Id: Icdf0c62268171e8c40d395366547a0bcaf612b61
2017-11-11 01:51:46 +00:00
Yuta HIGUCHI
0c47d5386e Deprecate joda-time
- ref:
  http://blog.joda.org/2014/11/converting-from-joda-time-to-javatime.html

Change-Id: I1115e8053f601e78cb933ccbfa664ff8787d2da1
2017-10-20 09:40:05 +00:00
Charles Chan
13dfea220f Add TODO to Segment Routing REST API
Change-Id: If22f314889519e899fcc48a1112b5c21dce4bb0c
2017-08-31 20:46:37 +00:00
Thomas Vachuska
b002968a83 Cleaning up application titles, descriptions and categories.
Change-Id: I80f9770697cbf29b6bde2b20778c341b0f403d9f
2017-08-24 10:19:33 -07:00
Charles Chan
1a3b02afb6 Implement basic unit tests for RouteHandler
In addition,
    - Refactor Segment Routing unit test mocking

Change-Id: I94cb75a8b12944264faa76301d58ee19f246d584
2017-08-22 15:37:03 +00:00
Ray Milkey
446f446a4f Refactor buck external dependencies
Change-Id: Ia4b99493407eb7d4e893804cba6b944f758f085e
2017-08-21 17:41:36 +00:00
Ray Milkey
69ec87142c Move routing from incubator to a separate app
Change-Id: I961d10af99c572b1f8d9b3d37c6f52dd04422007
2017-08-10 10:55:01 -07:00
Charles Chan
2e2e3404e2 Implement unit test for HostHandler
Change-Id: I0ba37731f70b98019962b4f7deaf88fc2245ea6c
2017-06-21 22:14:17 +00:00
Charles Chan
da708ccd3c Remove CORD config dependency from SR
SR now offers a clean way to config OLT control and data plane traffic.
For OLT data traffic, we can use vlanTagged config.
For OLT control traffic, we can use vlanUntagged/vlanNative + host config.

Change-Id: Icf7d345374d572711798a55b5a2349ad1f5d1fc9
2017-05-25 00:10:29 +00:00
Charles Chan
0ed44fba4d CORD-1015 CPR bridging alternative
- Remove workaround introduced in gerrit #12604
- Add ability to respond to IPv6 solicited-node multicast address of gateway IPs

Change-Id: I7d1c9840a51e35d471303a8f723245a5bbc809ff
2017-03-22 20:36:16 +00:00
Charles Chan
0b77bdda01 Fix Segment Routing dependency
Change-Id: Ifa74558d39944d6e20e6f8b34558ffc793c42784
2017-02-03 22:26:06 +00:00
Pier Luigi
7dad71ce54 Adding small handler to ICMPHandler
Change-Id: I8401c1564cc8aa89f8e3767ae83ec56c0dfe6fd0
2017-02-03 01:14:20 +00:00
Charles Chan
35fd1a7305 CORD-77 Dynamic Access Agent Config
This commit depends on https://gerrit.opencord.org/#/c/56/

Change-Id: I6084621c36046ae8b6262cab52c49825d3e0d0d1
2016-06-15 22:26:51 +00:00
Charles Chan
b3007e1442 CORD-180 Changed the way how learnt hosts are suppressed in gerrit 9195
Change-Id: I086ba82147ef716c076cb6140b03da2886515c32
2016-05-24 15:24:46 -07:00
Charles Chan
6ea94fc6b5 CORD-73 Change the way we configure host learning in segment routing
hostLearning config
    - true: enable host learning
    - false or not provided: disable host learning
suppressHost config
    - all connect points listed here will be ignored
    - no effect if hostLearning is false
    - accept all hosts if this config is not provided

Change-Id: Id4a60bd47cac1f226ab8ba5391931ad2fb798529
2016-05-17 21:47:23 +00:00
Charles Chan
d55e84de33 CORD-348 multicast support in SegmentRouting and vRouter
In this submission:
* Setup/teardown multicast route according to SinkAdded/SinkRemoved event
    - ingressVlan and egressVlan is configurable through network config
* Change behavior of OFDPA VLAN assignment
    - Always use the VLAN in metadata if present
* Bugfix of writing immutable object

NOT in this submission (coming soon):
* Error handling (e.g. link/device failure recovery)

Change-Id: I9be11af04eb2d6456b865c7e59e96cc02370f846
2016-04-18 20:06:57 +00:00
Jian Li
3d09f4f46d Fix buck build for segmentrouting application
Change-Id: I32f64c93fc1f3f5a1db444b8039dfe8b98dc2859
2016-04-13 15:43:22 -07:00
Charles Chan
2c8231c924 Fix application name and description in BUCK file
Change-Id: I26aa0cd81629f0b94df47dae1f74244096cf5e25
2016-04-12 18:11:57 +00:00
Ray Milkey
820d633b9f Start refactoring of app BUCK files
- Brian added maven coordinates to the maven JAR short path
- refactored segment routing and ganglia metrics apps

Change-Id: I7b8110e07a474d256d4821c1a9d083c9c8c11e2e
2016-04-11 20:26:29 +00:00
Charles Chan
5d58e8d2d4 Remove redundant dependency in SegmentRouting
Change-Id: I7e68f26247455b7ebacbd46b7b597be04d25207f
2016-04-11 15:51:56 +00:00
Ray Milkey
24439fe26d app buck refactor for apps: aaa, acl, bgprouter
Change-Id: Iaa970e3a937cc1df0aff29cc45f4c08c2d79cd13
2016-04-09 02:55:18 -07:00
Ray Milkey
7c25182db9 Fix buck tests
Change-Id: I3d681e6e5c1d3e98c87ccb3d20a619b216ae6133
2016-04-06 19:04:52 -07:00
Brian O'Connor
85f28d0a0a Updating test sources in several BUCK files
Change-Id: I17b83cb978f7b8fc1d31a1e96bec59a077dbdfbb
2016-04-06 16:57:45 +00:00
Ray Milkey
f80bbb22c2 Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
2016-03-29 21:39:14 +00:00