227 Commits

Author SHA1 Message Date
Sivachidambaram Subramanian
a0efdcc803 ONOS-6516 - Fix for NullPointer Exceptions found during OFDPA testing
Change-Id: I2fa20194ab6e47334c4a882ddf929597259946f8
2017-08-09 21:27:13 +00:00
Saurav Das
7bcbe7038c CORD-1419 CORD-1425 CORD-1496 CORD-639 Changes for dual-ToRs
Introduces the concept of edge-pairs (or paired-ToRs) which
can have some subnets/prefixes reachable by both ToRs.
   - Each ToR can also have prefixes reachable only by itself,
     even though it is part of an edge-pair.
   - The paired link between ToRs in an edge-pair is ignored
     for ECMP calculations.
   - Required a change in how destinations and next-hops are stored.
     The neighborSet is now a destinationSet, and no longer carries
     next-hop info, which is now stored in NextNeighbors. As a result,
     the DestinationSetNextObjectiveStoreKey and ECMP group id do not
     change as next-hops come and go.
   - It is now possible to have buckets in hash groups with the same
     outport but different labels.
   - DefaultRoutingHandler has been rearraged to be more readable, and
     clearly highlight the three major ways that routing changes can
     happen in the network.

Also fixes the case where config is added after switches connect to the controller.

Change-Id: I7ce93ab201f6ef2c01cbe07a51ee78cd6a0a112e
2017-08-04 13:49:40 -07:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Charles Chan
a59f9b76c8 Introduce driver property to suppress meter feature
Piggybacked in this commit:
- Fix CLI output of driver properties
- Fix mfr matching pattern in onos-drivers.xml
- Add driver support for Accton OFDPA 3

Change-Id: Ia350bd52f4e88e53565ff491d68bce5e4894bbb9
2017-08-03 11:29:40 -07: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
Charles Chan
d3072dc737 CORD-1625 Mark CpqD drivers as deprecated
Change-Id: I0137c390e1a623f206d495083834bea5003bc41b
2017-08-01 02:32:31 +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
Andrea Campanella
2cfe8ef782 Moving Extensions codecs to net/flow to avoid circular dependencies
Change-Id: I93dc5580ff46f57afe93dd4d1f0217359d5c89c2
2017-07-13 20:23:03 +00:00
sangho
1ef0e54a6e [SONA] Fixes the OpenStack pipeline bug of inserting table miss entry in table 1
Change-Id: I7e246b42810c1c08edc65c10b5b27bb5a31c60a5
2017-06-29 23:43:11 +00:00
Ray Milkey
f14cc6d3c2 Fix SNAPSHOT version string
Change-Id: I090c1998e5a117c10263b7a6abbffc624beb4074
2017-06-28 16:36:27 +00:00
Sivachidambaram Subramanian
c598d061f5 ONOS-6489 - Code submitted to facilitate installation of flow rules (via FlowObjective and ofdpa drivers) per port in case of IN_PORT "ALL"
Change-Id: I5fd001220c16cabb3a853f1fd8297f9e0a7decab
2017-06-27 20:55:38 +00:00
Ray Milkey
7463193198 Starting snapshot 1.11-SNAPSHOT 2017-06-23 16:46:27 -07:00
Yi Tseng
e935a644a4 [ONOS-6475] Supports BROADCAST by DefaultSingleTablePipeline
Change-Id: I66c9f9961763b057005bdf6f7a3b6fde1b5970cd
2017-06-21 19:29:57 +00:00
Saurav Das
c88d46642c CORD-1304 Set of changes for fabric routing to optimize use of ECMP groups
Also removing some old demo code in the SR app
Adding a couple of CLI commands for debugging
Bug fix in the DistributedGroupStore for group_exists error message
Bug fixes for ofdpa driver:
    - synchronized update of flowObjectiveStore when buckets are added to or removed from groups
      to avoid one thread from overwriting an update from another thread doing an update at the same time
    - addBucketToL2FloodGroup now updates flowObjectiveStore after accounting for changes
    - addBucketToHashGroup accounts for all added buckets, not just the first one

Change-Id: I6207c1c3c1b4379986805d73a73bc460fea8fe3f
2017-06-13 04:22:10 +00:00
Yuta HIGUCHI
6ee6b8ccd2 netty4 OpenFlow southbound
- separate I/O thread and message dispatch threads

Change-Id: I11a10a47de451a9e3063b62f9450be19c3a9dae7
2017-06-12 20:28:12 +00:00
Yuta HIGUCHI
498fa1d321 Bump Guava to 21.0
Change-Id: Id81705773d191db6a18153d8b2dd4abd2bfd0e60
2017-05-19 15:40:12 +00:00
Jimmy Jin
e9b7a02ff9 OpenFlow message processing for new loxi
Depends-On: Id69c8597eb4564653c56cdc90f2dcec50afbdd25

Change-Id: Ib14fbadd3debf98ce1d56343179f8e7929f8ade8
2017-05-19 15:40:12 +00:00
Yi Tseng
32c053c826 [ONOS-6462] Intent stuck in WITHDRAWING state with FlowObjective intent compiler
Reasons makes Intent stuck in WITHDRAWING state:
1. The patch for CORD-1180 caused next objective queued in the objective
system if there is no next group for that next objective.

2. Default single table pipeline removes next group from flow objective
store when removing forwarding objective.

3. The flow objective Intent installer will remove forwarding objective
first, then remove next objective.

4. The flow objective Intent install will wait until all objective context
completed, however, according to reason 1, 2 and 3, the next objective
will be queued forever since there will be no next group in the store. So
the Intent state will stuck in WITHDRAWING until the Intent manager retry.

To fix this issue, we need to modify default single table pipeline, make it
not remove next group when removing forwarding objective.

Change-Id: Ia51a3361f19b60332ca1a276583cdfc036d93343
2017-05-16 20:42:20 +00:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Frank Wang
5733c387cc [ONOS-6208]Implemention of onos and loxi for OVS NAT and connection tracking support
Change-Id: I782422d41fdacc805b523b57c3bd0b6e67e483a2
2017-05-15 16:31:15 +00:00
Saurav Das
1547b3ffd8 CORD-1180 Collection of fixes for hash-group buckets. Required the following changes:
Next-objectives that edited groups are now queued in the FlowObjectiveManager instead of the driver.
	  During linkup immediately checking for previous portups that should be added to a hash group.
	  A final retry 30 secs later to catch all ports that should be part of the same hash group.

Change-Id: I7ef450149d685890ca47932b8e559a0c11dc5ab4
2017-05-12 21:37:00 +00:00
Yi Tseng
ef19de1e84 [CORD-1108] Refactoring OFDPA Group Handler
Create package "ofdpa" under pipeline package
Move helper functions and classes to OfdpaGroupHandlerUtility

Change-Id: I47e42f2c8afc9088ed684cd6a087233a82c452f6
2017-05-04 20:59:28 +00:00
Ray Milkey
8fd28c7b80 Starting snapshot 1.10.0-SNAPSHOT 2017-05-02 14:37:34 -07:00
Ray Milkey
f0099022d2 Tagging 1.10.0-rc1 2017-05-02 14:35:27 -07:00
Saurav Das
86d13e8ef4 Adding a driver for OF-DPA in Qumran based switches.
Change-Id: I0dae54488e02dbd86c9bb81c556efba2f3f3f0dd
2017-05-02 01:53:30 +00:00
Yi Tseng
0fdc07e7bf Remove IP criterion from OF-DPA pipeline filter
Change-Id: I79700f31009265519e0f9297fc018385c6e30483
2017-05-01 20:58:24 +00:00
daniel park
ac34890cac Fix to support vlan id criterion in openstack pipeline
Change-Id: I4403620ffe2aa0b5c56ed15514e6273da8ee0f5a
2017-04-26 20:56:08 +00:00
Yuta HIGUCHI
2dce08a7eb StringBuffer -> StringBuilder
Change-Id: Ibacf9357619712909544ddeb901bbef04c822bfe
2017-04-21 19:18:05 +00:00
sangho
6a9ff0d879 [ONOS-6137] Refactoring SecurityGroup features for stateful SONA
- Caches the security group information
- Supports seucrity group & rules update

Change-Id: Id7cdfb84e53e00aab49fbe736fb39e37492eeb61
2017-04-14 15:21:50 +00:00
Yi Tseng
91cf2d4416 [CORD-1107] Fix NPE when remove buckets
Change-Id: I4ed64bac50353c0e19c4213bbb2cacc1086e80bc
2017-04-11 19:45:58 +00:00
Jian Li
f97f2bc12a Further simplify if-else statement for OF default extensions
Change-Id: I0fd3f81ef8aa355f3bf6ff79b798ec5b8449a0f4
2017-04-10 23:50:14 +00:00
Saurav Das
961beb2c1b Bug fix: Do not create groups as a side effect when revoking routes
Also changing pendingGroups to a cache that will automatically purge failed groups
Improving log messagesin several places

Change-Id: I6843a66d58e623259c7fd20ffe64d56a46d963f0
2017-04-07 21:39:59 +00:00
Andrea Campanella
5953a4f3db Removing useless dependecy on driver utils from default drivers
Change-Id: I649230d630bd0bcb40f4267934ea7e5ae2efdd70
2017-04-06 12:54:07 +02:00
Charles Chan
053b1cbd3f Refactoring OFDPA pipeline
Remove redundant code and improve log message

Change-Id: I1b8da70abf0c12b71428da0e7e76fe7be793449b
2017-03-31 21:23:35 +00:00
ke han
9649cdd515 nokia pipeline: block eapol flow rules in fwd primitive because it already sent in filter primitive
Change-Id: I6e6b30e749a4e90f2d1dc6f58bc81a6db7df5c15
2017-03-28 14:12:50 +00:00
Saurav Das
b28d5dd544 Bug fix - Do not create new next-objective if there are no
non-duplicate buckets to add.

Change-Id: I5bbf3f22225ae91efeed7f5987e771de209f725c
2017-03-27 22:34:52 +00:00
Yi Tseng
47f82dcb09 Support multiple pending add buckets
Change-Id: Ia528a9b52ad9cb935b4a5d0bc41263baabbdb3d3
2017-03-24 23:19:06 +00:00
Yi Tseng
117952ddab Using static l2 flood group key
Change-Id: I1a61403fb80ec2f8b6d346d74c5a673fae2a22c5
2017-03-24 21:38:23 +00:00
Yi Tseng
fa394defdc Fix for ONOS-5175. GroupId refactoring.
Science DefaultGroupId was deprecated, remove it from ONOS

Change-Id: I82394e58ec1ba10c37492ed77546e233de9f934f
2017-03-24 21:13:57 +00:00
Yi Tseng
eeb3dc10d3 [CORD-1051] Fix bug when remove multiple bucket
Change-Id: Iefe343278d561c6d60b842cbecc85e9328a64169
2017-03-24 21:00:50 +00:00
Charles Chan
d1172636d1 CORD-810 Remove VLAN extension selector from OFDPA 3
Change-Id: I973c5c3cb468998782e3b79ca1105a3f57dc265f
2017-03-22 20:55:07 +00:00
Thomas Vachuska
43de6ee303 Refactoring abstract driver loader to assure that default drivers get loaded first by default.
Change-Id: I2fd213d8f49b6390ec8f005795bb95661aaee793
2017-03-16 16:02:37 +00:00
Saurav Das
b0ae6ee49e CORD-999 changes to support vlans
Major changes to the DhcpRelay app
   Bug fix to not depend on global variables that can be overwritten
   App is now vlan aware i.e. client and server can be in different vlans
   Added probing of dhcpServer to get mac/vlan instead of configuring these values
   Added optional gateway IP for cases where dhcpServer is "behind" external router
Added support in host monitor for trunk vlan configurations
Javadoc fix in Interface.java
Commented out unused log message in HostLocationProvider
Bug fix to make ALL group editing vlan aware.

Change-Id: Ib04ed6c1ef45055f771983db29724cfde24ac54b
2017-03-07 23:38:27 +00:00
Charles Chan
0f43e4714a CORD-908 Remove VLAN MPLS workaround in OVS
* No longer pop VLAN before entering Unicast Routing and MPLS table.
* In MPLS label group, pop vlan first, push MPLS label and push back an arbitrary vlan.
  The vlan will get overwritten in MPLS interface group.
* Deprecate OVS VLAN pipeline since this one will now support both scenario
* Introduce punt table
  - Correctly determine whether vlan should be popped before sending to controller.
  - The pop and punt will not affect deferred group since
    it is done by group instead of apply action
  - Prepare for upcoming trunk port support

Change-Id: I8a28821fdab28647f6871bc8ff2f006f6ac2b763
2017-03-06 23:20:00 +00:00
Charles Chan
f6ec153756 Refactor SR and OFDPA pipeliner
populateRouterMacVlanFilters -> populateVlanMacFilters
hostFwdObjBuilder -> bridgingFwdObjBuilder
getForwardingObjectiveBuilder -> routingFwdObjBuilder
refactor pipeline initialization

Change-Id: I94932cde5155706571085ff41cb4ef63e2a39844
2017-03-06 23:18:05 +00:00
Yi Tseng
78f51f4e4f [CORD-555][CORD-966] Support add/remove multiple buckets for group
Change-Id: I496838e4ba6387c7c43264d3077bc7a760b3b372
2017-03-01 19:55:02 +00:00
Saurav Das
018605fb4e In this commit: CORD-799
Bug fix for host-update to not remove and add the same IP addr
   NPE fix in ofdpa3pipeline
   Removing unused code in ofdpa2pipeline
   Ability to add or revoke port filters for port-updates
   Retry filters retry for a longer time
   Bug fix for suppress ports to not suppress filters
   Filters now sent only by master instance
   Removing the MPLS BOS=0 rules for now until inconsitent hardware behavior is fixed

Change-Id: I8b4ee4af6de263531e0696af86e65f1c502f5f85
2017-02-23 00:25:41 +00:00
Andrea Campanella
e6e2b7672a ONOS-6031 Fixing class loading problem when adding FullMeatersAvailable to corsa-v39 driver
Change-Id: I7c89f8bb85942f4a6e04034be010416752e2924e
2017-02-22 23:59:02 +00:00