netvirt.git
8 years agoChanges to LogicalSwitchUpdateCommand in transact as per new yang
Peng Zhang [Wed, 25 Nov 2015 08:22:06 +0000 (16:22 +0800)]
Changes to LogicalSwitchUpdateCommand in transact as per new yang

1. changes to LogicalSwitchUpdateCommand in transact
2. remove redundant code

PatchSet 2:
1. Get "extractCreated" back

PatchSet 3:
1. Change postman collection as per new yang

Patchset 4:
Fixed update issue in LogicalSwitchUpdate command

Change-Id: If2f34ed570bfa0f265c976178272dc07674766ec
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMerge "Add option to use netdev datapath_type"
Sam Hague [Wed, 25 Nov 2015 21:21:20 +0000 (21:21 +0000)]
Merge "Add option to use netdev datapath_type"

8 years agoAdd option to use netdev datapath_type
Sam Hague [Wed, 25 Nov 2015 20:51:46 +0000 (15:51 -0500)]
Add option to use netdev datapath_type

Change-Id: Ica37449612dc2465ddd71bfc19caa9a599354c34
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoyang changes, PhysicalLocator and UcastMacsRemote
Vishal Thapar [Wed, 25 Nov 2015 14:30:30 +0000 (20:00 +0530)]
yang changes, PhysicalLocator and UcastMacsRemote

1. Added PhysicalLocator and UCastMacsRemote Update code.
2. Yang: Modified logical-switch-ref to correct type based on recent
changes
3. Yang: Moved all mac attributes to Global node from PhysicalSwitch.

Change-Id: I1a51ea9a4423144892488d9de6d01e7b5271d18b
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMerge "Changes to LogicalSwitchUpdate as per new yang"
Sam Hague [Wed, 25 Nov 2015 14:45:57 +0000 (14:45 +0000)]
Merge "Changes to LogicalSwitchUpdate as per new yang"

8 years agoMerge "Added UT and refactored code 1) Added UT for SecurityServicesImpl and Security...
Sam Hague [Wed, 25 Nov 2015 14:42:25 +0000 (14:42 +0000)]
Merge "Added UT and refactored code 1) Added UT for SecurityServicesImpl and SecurityGroupCacheManagerImpl. 2) Refactored a method in SecurityServicesManager."

8 years agoMerge "UT for ProtocolRemovedCommand class"
Sam Hague [Wed, 25 Nov 2015 14:41:47 +0000 (14:41 +0000)]
Merge "UT for ProtocolRemovedCommand class"

8 years agoMerge "Clean up L2ForwardingService"
Sam Hague [Wed, 25 Nov 2015 14:41:13 +0000 (14:41 +0000)]
Merge "Clean up L2ForwardingService"

8 years agoMerge "Move NetvirtIT to use latest IT parent poms"
Sam Hague [Wed, 25 Nov 2015 14:15:01 +0000 (14:15 +0000)]
Merge "Move NetvirtIT to use latest IT parent poms"

8 years agoMove NetvirtIT to use latest IT parent poms
Sam Hague [Wed, 25 Nov 2015 13:43:46 +0000 (08:43 -0500)]
Move NetvirtIT to use latest IT parent poms

Change-Id: If59f183f08b0a98514ff1db4c6e0fb7cc1c2ed7c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoChanges to LogicalSwitchUpdate as per new yang
karanrajsingh [Tue, 24 Nov 2015 16:13:56 +0000 (21:43 +0530)]
Changes to LogicalSwitchUpdate as per new yang

Patchset2: review comments

Change-Id: I0bff6c4a2dbcb63fde20da8c2595061af5e8bca2
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
8 years agoAdded UT and refactored code
Aswin Suryanarayanan [Tue, 24 Nov 2015 17:48:03 +0000 (23:18 +0530)]
Added UT and refactored code
1) Added UT for SecurityServicesImpl and SecurityGroupCacheManagerImpl.
2) Refactored a method in SecurityServicesManager.

Change-Id: I039d34869d182bc19ad89733092e0a5f35f67295
Signed-off-by: Aswin Suryanarayanan <aswin.suryanarayanan@hp.com>
8 years agoMerge "Change hwvtep.yang and fix related code"
Sam Hague [Tue, 24 Nov 2015 11:47:05 +0000 (11:47 +0000)]
Merge "Change hwvtep.yang and fix related code"

8 years agoChange hwvtep.yang and fix related code
Peng Zhang [Tue, 24 Nov 2015 05:33:39 +0000 (13:33 +0800)]
Change hwvtep.yang and fix related code

1. Change hwvtep.yang based on https://git.opendaylight.org/gerrit/#/c/29797/.
2. Fix related code.

Change-Id: I314ddc23daebe59bd3ed241fa80803ce4845ef37
Signed-off-by: Peng Zhang <pzhang@ctbri.com.cn>
8 years agoMerge "Test code for failing IT test 2"
Sam Hague [Tue, 24 Nov 2015 01:34:07 +0000 (01:34 +0000)]
Merge "Test code for failing IT test 2"

8 years agoTest code for failing IT test 2
Sam Hague [Tue, 24 Nov 2015 01:33:45 +0000 (20:33 -0500)]
Test code for failing IT test 2

Change-Id: Idf46604a17d5b96f3b62f29f17be1fbeb12d2b67
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoTest code for failing IT test
Sam Hague [Mon, 23 Nov 2015 22:51:12 +0000 (17:51 -0500)]
Test code for failing IT test

Change-Id: I250408640b46e60d0ae67bfe75b898fb077ea2ff
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoUT for ProtocolRemovedCommand class
Layth Al-Ani [Thu, 12 Nov 2015 20:49:16 +0000 (15:49 -0500)]
UT for ProtocolRemovedCommand class

Change-Id: Icd2b454b49b214735540c20281d6611071309947
Signed-off-by: Layth Al-Ani <lalani@inocybe.com>
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoClean up L2ForwardingService
Stephen Kitt [Fri, 20 Nov 2015 16:44:05 +0000 (17:44 +0100)]
Clean up L2ForwardingService

Avoid multiple instanciations of MatchBuilders.

Factor common code involved in FlowBuilder setup and instruction
construction, adding appropriate methods in FlowUtils and
InstructionUtils.

Use fluent-style builders.

Drop appendResubmitLocalFlood() which isn't used.

Avoid multiple creations of the same Uri in loops.

Two of the FlowBuilders don't have a setStrict() call; is that
intentional?

Change-Id: I984a735229613bd013443ff16815a1566a74b2d5
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "L3: Add eth to br-ex"
Sam Hague [Sun, 22 Nov 2015 15:58:28 +0000 (15:58 +0000)]
Merge "L3: Add eth to br-ex"

8 years agoHandle new base type provided by MD-SAL
Stephen Kitt [Thu, 19 Nov 2015 17:41:29 +0000 (18:41 +0100)]
Handle new base type provided by MD-SAL

When deserialized, OvsdbBridgeAugmentation's datapathType is now
initialized as DatapathTypeBase instead of null. This is now handled
as an absent value in SouthboundMapper instead of producing an
IllegalArgumentException.

The exception's message is clarified to trace the unknown datapath
type class, instead of the value retrieved from the map (which is
always null in this case).

Change-Id: Ie10ff09878bf182d4747d63f1580a37dfd71ac88
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Remove a few obsolete dependencies"
Sam Hague [Thu, 19 Nov 2015 02:28:45 +0000 (02:28 +0000)]
Merge "Remove a few obsolete dependencies"

8 years agoRemove a few obsolete dependencies
Stephen Kitt [Wed, 18 Nov 2015 13:36:12 +0000 (14:36 +0100)]
Remove a few obsolete dependencies

A security upgrade for commons-collections was released, but it turns
out ovsdb no longer uses it; this patch removes that from dependency
management along with a couple of other obsolete dependencies.

Change-Id: I7d3ba0c908e5306475f35ce9e07b0099f9c8f4cf
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoUse an Autoclosable to guarantee bridge clean-up
Stephen Kitt [Tue, 17 Nov 2015 14:03:56 +0000 (15:03 +0100)]
Use an Autoclosable to guarantee bridge clean-up

TestBridge encapsulates a bridge created in OVSDB; with
try-with-resources this means we know we always clean the bridges up.

Change-Id: Iac00febaa8525d985bd4ba2b71393dd1d086c314
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoShare a single OVSDB connection among all tests
Stephen Kitt [Tue, 17 Nov 2015 09:57:17 +0000 (10:57 +0100)]
Share a single OVSDB connection among all tests

This helps SouthboundIT greatly, and the OVSDB is clean after the
tests finish.

Change-Id: I0ee431a269468b973cc01bd07bb766950f0b5a52
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Maven cleanup and features-parent migration"
Sam Hague [Mon, 16 Nov 2015 17:49:31 +0000 (17:49 +0000)]
Merge "Maven cleanup and features-parent migration"

8 years agoMerge "Added code for PhysicalPort, LogicalSwitch"
Sam Hague [Mon, 16 Nov 2015 17:48:02 +0000 (17:48 +0000)]
Merge "Added code for PhysicalPort, LogicalSwitch"

8 years agoMerge "Added support to update flows for induvidual security rule add/remove , after...
Sam Hague [Mon, 16 Nov 2015 17:46:17 +0000 (17:46 +0000)]
Merge "Added support to update flows for induvidual security rule add/remove , after the SG is associated with a port."

8 years agoMerge "Use MD-SAL events to react to OVSDB changes"
Sam Hague [Mon, 16 Nov 2015 17:32:18 +0000 (17:32 +0000)]
Merge "Use MD-SAL events to react to OVSDB changes"

8 years agoMerge "SouthboundIT: merge the CRUD tests methods"
Sam Hague [Mon, 16 Nov 2015 17:31:23 +0000 (17:31 +0000)]
Merge "SouthboundIT: merge the CRUD tests methods"

8 years agoMaven cleanup and features-parent migration
Stephen Kitt [Mon, 16 Nov 2015 16:56:42 +0000 (17:56 +0100)]
Maven cleanup and features-parent migration

Use features-parent {{VERSION}} to allow dropping a number of Maven
properties.

Upgrade commons-collections (1.0 -> 3.2.1) and httpcomponents (4.2.1
-> 4.4.1).

Drop a number of obsolete components from dependency management
(controller:commons.northbound, controller:containermanager,
controller:forwardingrulesmanager, controller:sal,
controller:switchmanager.

Use odlparent-provided versions of commons-lang3, most netty
components, and the equinoxSDK381 components.

Drop obsolete io.netty:netty:3.8.0 dependency (replaced by
io.netty:netty-all in versions 4+).

Remove some duplicate dependency declarations.

Use "<relativePath/>" instead of "<relativePath></relativePath>" now
that it's safe to do so (the auto-release scripts handle it).

Change-Id: I62a385ba49d79e045934ec706f69313425553ae0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 4641 - openstack.net-virt-sfc-features fail to find artifacts
Sam Hague [Mon, 16 Nov 2015 13:43:54 +0000 (08:43 -0500)]
Bug 4641 - openstack.net-virt-sfc-features fail to find artifacts

Change-Id: Ie9110ebcfb7412015c171e0add5faa89ecd5d293
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdded code for PhysicalPort, LogicalSwitch
Vishal Thapar [Fri, 13 Nov 2015 13:11:45 +0000 (18:41 +0530)]
Added code for PhysicalPort, LogicalSwitch

1. Added PhysicalPortUpdate and PhysicalPortRemove
2. Added LogicalSwitchUpdate and LogicalSwitchRemove
With these changes physical-port and logical-switch changes on device are
reflected in OperationalDS.

Patchset2:
1. Rebase
2. Add VlanBindings to OperationalDataStore
3. Use env vars for IPs in postman collection
4. Fixed a bug in postman collection

Change-Id: Ic1b3d0e15088db6d81316ad88c2db5299a9c9be0
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMerge "Listen config DS then push configuration to switch"
Sam Hague [Mon, 16 Nov 2015 02:30:18 +0000 (02:30 +0000)]
Merge "Listen config DS then push configuration to switch"

8 years agoMerge "Bug 4641 - openstack.net-virt-sfc-features fail to find artifacts"
Sam Hague [Mon, 16 Nov 2015 02:29:55 +0000 (02:29 +0000)]
Merge "Bug 4641 - openstack.net-virt-sfc-features fail to find artifacts"

8 years agoBug 4641 - openstack.net-virt-sfc-features fail to find artifacts
Sam Hague [Mon, 16 Nov 2015 01:59:10 +0000 (20:59 -0500)]
Bug 4641 - openstack.net-virt-sfc-features fail to find artifacts

Change-Id: Iccc0c5d817db0014842f5e7023b173c67af728e2
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoListen config DS then push configuration to switch
Peng Zhang [Thu, 12 Nov 2015 03:01:04 +0000 (11:01 +0800)]
Listen config DS then push configuration to switch

Patch Set 1:
1. Add skeletal code for command pattern to push configuration to switch, function TBD.
2. Implement LogicalSwitchUpdateCommand.

Patch Set 2:
1. Fix whiteapce issues.
2. Add 'logical-switch-managed-by' for logical-switch-attribute in hwvtep.yang.
3. Use hcm.getConnetionInstance(node) added in https://git.opendaylight.org/gerrit/#/c/29599.

Patch Set 3:
1. Fix LOG severities and delete some TODOes.
2. Use HwvtepSchemaConstats.databaseName for Hwvtep database name.

Change-Id: I0fe5dafdf9ecfa91ee8c757c4b694a50e6cbed35
Signed-off-by: Peng Zhang <pzhang@ctbri.com.cn>
8 years agoMerge "rework sfc flows 2"
Sam Hague [Sat, 14 Nov 2015 06:20:12 +0000 (06:20 +0000)]
Merge "rework sfc flows 2"

8 years agoMerge "Patch Set 1: Add postman collection for HwvtepSouthbound"
Sam Hague [Sat, 14 Nov 2015 06:06:58 +0000 (06:06 +0000)]
Merge "Patch Set 1: Add postman collection for HwvtepSouthbound"

8 years agorework sfc flows 2
Sam Hague [Sat, 14 Nov 2015 05:44:31 +0000 (00:44 -0500)]
rework sfc flows 2

Change-Id: I9cb93d19d54cd7bcf7d93ab82e17dbe7579cafb3
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Security Groups: Added support for ICMP, ALL ICMP and Others protocol Change...
Anil Vishnoi [Fri, 13 Nov 2015 17:11:12 +0000 (17:11 +0000)]
Merge "Security Groups: Added support for ICMP, ALL ICMP and Others protocol Change-Id: Iedc3061ccaf03f21b9a39da8a4b8b27c4baea6f0 Signed-off-by: raveek <raveek@hp.com>"

8 years agoMerge "Fixed possible null point exception in node manager entries update code"
Flavio Fernandes [Fri, 13 Nov 2015 10:53:05 +0000 (10:53 +0000)]
Merge "Fixed possible null point exception in node manager entries update code"

8 years agoPatch Set 1:
Peng Zhang [Thu, 12 Nov 2015 15:13:05 +0000 (23:13 +0800)]
Patch Set 1:
Add postman collection for HwvtepSouthbound

Patch Set 2:
Add brief introduction in README

Patch Set 3:
Change to multi-line version

Patch Set 4:
Fix whitespace issues

Patch Set 5:
Fix whitespace issues: a trailing space missed

Patch Set 6:
recheck

Change-Id: If7a764ca56ced4316aa04ff8538bf12849d60dd9
Signed-off-by: Peng Zhang <pzhang@ctbri.com.cn>
8 years agoMerge "add rsp option"
Sam Hague [Fri, 13 Nov 2015 04:22:28 +0000 (04:22 +0000)]
Merge "add rsp option"

8 years agoMerge "added getConnectionInstance by Node"
Sam Hague [Fri, 13 Nov 2015 04:19:47 +0000 (04:19 +0000)]
Merge "added getConnectionInstance by Node"

8 years agoadd rsp option
Sam Hague [Fri, 13 Nov 2015 03:48:16 +0000 (22:48 -0500)]
add rsp option

Change-Id: Idd0410436861ccc13ad581e42e75ea793102e3ad
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "UT for remaining classes in ovsdb.southbound.ovsdb.transact"
Flavio Fernandes [Fri, 13 Nov 2015 01:57:50 +0000 (01:57 +0000)]
Merge "UT for remaining classes in ovsdb.southbound.ovsdb.transact"

8 years agoMerge "Declare expected exceptions"
Flavio Fernandes [Fri, 13 Nov 2015 01:57:00 +0000 (01:57 +0000)]
Merge "Declare expected exceptions"

8 years agoMerge "Avoid logging stacktraces for schema version mismatches"
Flavio Fernandes [Fri, 13 Nov 2015 01:55:59 +0000 (01:55 +0000)]
Merge "Avoid logging stacktraces for schema version mismatches"

8 years agoFixed possible null point exception in node manager entries update code
Anil Vishnoi [Fri, 13 Nov 2015 01:47:23 +0000 (07:17 +0530)]
Fixed possible null point exception in node manager entries update code

Change-Id: Iac231117e592f23c6e1362b71e76ae13d6c98a40
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMerge "Bug 4611: null pointer exception while processing interface event"
Flavio Fernandes [Thu, 12 Nov 2015 23:47:28 +0000 (23:47 +0000)]
Merge "Bug 4611: null pointer exception while processing interface event"

8 years agoFor controller initiated connection, there is race condition
Anil Vishnoi [Tue, 10 Nov 2015 20:50:37 +0000 (02:20 +0530)]
For controller initiated connection, there is race condition
while disconnecting the device from controller, that does
not allow one of the non-owner southbound instance to disconnect
the device from the plugin. Race condition was occuring because
OvsdbConnectionInstance was not stored in the internal cache
at correct point in control flow.It gets added when EntityOwnershipChange
event happens, so when data change event for disconnection occured,
it requires OvsdbConnectionInstance to be in cache to disconnect
from the device, but OvsdbConnectionInstance was not in the cache
becuse EntityOwnershipService event was not recieved by that non-owner instance.

Conflicts:
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundProvider.java

Change-Id: I3861b5f2907d08709a3bd1aa4f4ecfbfd444351d
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMerge "rework sfc flows"
Sam Hague [Thu, 12 Nov 2015 20:29:33 +0000 (20:29 +0000)]
Merge "rework sfc flows"

8 years agorework sfc flows
Sam Hague [Thu, 12 Nov 2015 17:30:30 +0000 (12:30 -0500)]
rework sfc flows

Change-Id: I1789ce135a8b08de4c4321fdd69cec73bc4a638c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoadded getConnectionInstance by Node
Vishal Thapar [Thu, 12 Nov 2015 15:13:23 +0000 (20:43 +0530)]
added getConnectionInstance by Node

This is required for https://git.opendaylight.org/gerrit/#/c/29575/

Change-Id: Iceab17399b973dab7c1fbf47d21af6989aa2f49e
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMerge "workaround for sfc part 2"
Sam Hague [Wed, 11 Nov 2015 21:25:06 +0000 (21:25 +0000)]
Merge "workaround for sfc part 2"

8 years agoworkaround for sfc part 2
Sam Hague [Wed, 11 Nov 2015 20:53:10 +0000 (15:53 -0500)]
workaround for sfc part 2

Change-Id: Ib733682492ede0985dae97bbe3add80b359add1f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "add rest of sfc flows"
Sam Hague [Wed, 11 Nov 2015 05:20:09 +0000 (05:20 +0000)]
Merge "add rest of sfc flows"

8 years agoadd rest of sfc flows
Sam Hague [Wed, 11 Nov 2015 04:54:04 +0000 (23:54 -0500)]
add rest of sfc flows

Change-Id: I44629e889705c4e7f6a21c3655addee9670bc8c5
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "workaround for sfc"
Sam Hague [Tue, 10 Nov 2015 20:47:15 +0000 (20:47 +0000)]
Merge "workaround for sfc"

8 years agoworkaround for sfc
Sam Hague [Tue, 10 Nov 2015 17:11:10 +0000 (12:11 -0500)]
workaround for sfc

Change-Id: I46b22b084627f95c1e478b1cf004681d21d4595c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 4611: null pointer exception while processing interface event
Flavio Fernandes [Tue, 10 Nov 2015 16:56:35 +0000 (11:56 -0500)]
Bug 4611: null pointer exception while processing interface event

Acl service needs to handle cases when port security info is not available.

Patch set 2: add unit test

Change-Id: I788d31e4f0001fcf70caa59086d432b01178de1b
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoAvoid logging stacktraces for schema version mismatches
Stephen Kitt [Tue, 10 Nov 2015 08:47:34 +0000 (09:47 +0100)]
Avoid logging stacktraces for schema version mismatches

Change-Id: Ic3db3d3526491bb488d396be64adc9e41e09a3d6
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoDeclare expected exceptions
Stephen Kitt [Tue, 10 Nov 2015 08:46:13 +0000 (09:46 +0100)]
Declare expected exceptions

@Test supports declaring (and verifying) expected exceptions, let's
use that instead of manually detecting the exceptions.

Change-Id: Iafe26c2c566ebdfe7616a864d5e6c60d3b2b7fe2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoUT for remaining classes in ovsdb.southbound.ovsdb.transact
Rashmi Pujar [Mon, 9 Nov 2015 17:58:55 +0000 (12:58 -0500)]
UT for remaining classes in ovsdb.southbound.ovsdb.transact

Change-Id: I7dfd78209e770c28a7ced22cea9308c5c9fe7ee8
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoAdded support to update flows for induvidual security rule add/remove ,
Aswin Suryanarayanan [Wed, 4 Nov 2015 20:26:57 +0000 (01:56 +0530)]
Added support to update flows for induvidual security rule add/remove ,
after the SG is associated with a port.

Change-Id: I88d485bb0725909f00b1bc8d48ef17705a8fc695
Signed-off-by: Aswin Suryanarayanan <aswin.suryanarayanan@hp.com>
8 years agoUse MD-SAL events to react to OVSDB changes
Stephen Kitt [Mon, 9 Nov 2015 10:28:02 +0000 (11:28 +0100)]
Use MD-SAL events to react to OVSDB changes

Instead of just waiting after creating or deleting the OVSDB MD-SAL
node, wait for the corresponding event in the operational database.
This actually saves time in most cases (since the round-trip takes
less time than the static wait), and avoids failing tests
unnecessarily when the round-trip takes longer than expected. There's
an overall timeout to make sure we don't hang the test completely.

For now this only handles connectOvsdbNode() and
disconnectOvsdbNode(), but the stage is set for other MD-SAL
manipulations to be processed in the same way.

This isn't multi-threadable as-is.

Change-Id: If1279054f38192bed007d83f9fda981dc0c466f1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoSouthboundIT: merge the CRUD tests methods
Stephen Kitt [Tue, 3 Nov 2015 14:14:46 +0000 (15:14 +0100)]
SouthboundIT: merge the CRUD tests methods

We use two variants, one for plain bridges, the other for termination
points.

Change-Id: I986d93c65cc90a37eaf0036ff93a0e4148ba030c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoSecurity Groups: Added support for ICMP, ALL ICMP and Others protocol
raveek [Tue, 3 Nov 2015 07:55:21 +0000 (13:25 +0530)]
Security Groups: Added support for ICMP, ALL ICMP and Others protocol
Change-Id: Iedc3061ccaf03f21b9a39da8a4b8b27c4baea6f0
Signed-off-by: raveek <raveek@hp.com>
8 years agoMerge "Added command patterns to update OperDS"
Sam Hague [Mon, 9 Nov 2015 04:21:33 +0000 (04:21 +0000)]
Merge "Added command patterns to update OperDS"

8 years agoinitial framework for sfc workaround and IT tests
Sam Hague [Mon, 9 Nov 2015 03:21:15 +0000 (22:21 -0500)]
initial framework for sfc workaround and IT tests

Change-Id: I94a4a40659fb4f0a1ecc815a7d132ffcadd991de
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoupdate exports for ServiceHelper
Sam Hague [Mon, 9 Nov 2015 03:19:43 +0000 (22:19 -0500)]
update exports for ServiceHelper

Change-Id: I7d7e97b5860dbaca87877d95759fe550a62855e8
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd config for selecting provider
Sam Hague [Sun, 8 Nov 2015 16:22:28 +0000 (11:22 -0500)]
Add config for selecting provider

Change-Id: I5597573fa2cafd2e7db4d444fc51030adf478f7c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoRework provider interface to allow different providers
Sam Hague [Sun, 8 Nov 2015 15:14:29 +0000 (10:14 -0500)]
Rework provider interface to allow different providers

Change-Id: Iaa36bc040e82005c3a8d419e23ad9ac8696c1215
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd SfcClassifier to pipeline
Sam Hague [Sat, 7 Nov 2015 02:11:42 +0000 (21:11 -0500)]
Add SfcClassifier to pipeline

Change-Id: I7de504449435678020efc3aca290897adada42ab
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge changes I4a8650ae,Ie2e119fd,Ic2acced7,Ieeb5ae5b,I2f7b6f8f
Flavio Fernandes [Fri, 6 Nov 2015 23:17:52 +0000 (23:17 +0000)]
Merge changes I4a8650ae,Ie2e119fd,Ic2acced7,Ieeb5ae5b,I2f7b6f8f

* changes:
  Fixed wildcarded imports
  Fixed NPE in md-sal secutiry groups to neutron security group conversion.
  Removed Flow id caches that is being used to check
  Populate the Node Cache at the controller start/restart.
  Repopulate router, port and floating ip related caches These caches can create a problem in a cluster environment where node goes down and rejoin the cluster. All the caches will be clear on restart, and if newly join node become master instance, it can break the functionality. This patch is re-populating all the required caches

8 years agoFixed wildcarded imports
Anil Vishnoi [Fri, 6 Nov 2015 22:37:33 +0000 (04:07 +0530)]
Fixed wildcarded imports

Change-Id: I4a8650aefddd0455e55d005a2ffd017a34d64293
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoFixed NPE in md-sal secutiry groups to neutron security group conversion.
Anil Vishnoi [Wed, 4 Nov 2015 18:17:46 +0000 (23:47 +0530)]
Fixed NPE in md-sal secutiry groups to neutron security group conversion.

Change-Id: Ie2e119fdc24168f2ab4df26332244586c644912f
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoRemoved Flow id caches that is being used to check
Anil Vishnoi [Sat, 31 Oct 2015 04:50:31 +0000 (10:20 +0530)]
Removed Flow id caches that is being used to check

if flow is already installed or deleted. Now it will
install flow irrespective of whether the flow already
installed or not. It won't really do installation of
flow again, because if you write same data again, it's
going to be no-op. These caches create issues if new node
with same ovsdb ip:port connects the controller, but the
openflow bridge is different.

Change-Id: Ic2acced7a9a006e6e04afba6fea22aaf0620f134
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoPopulate the Node Cache at the controller start/restart.
Anil Vishnoi [Sat, 31 Oct 2015 00:21:08 +0000 (05:51 +0530)]
Populate the Node Cache at the controller start/restart.

This cache can be removed fully, but if we do that, we need
to make read call to the data store, where we will have to
read the whole topology tree, that can put some load on the
md-sal data store, and it might not be negligible in case of
clustered data store.

Change-Id: Ieeb5ae5ba01839b34aefe7d3916c6bdd0fb14808
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoRepopulate router, port and floating ip related caches
Anil Vishnoi [Sat, 31 Oct 2015 00:21:08 +0000 (05:51 +0530)]
Repopulate router, port and floating ip related caches
These caches can create a problem in a cluster environment
where node goes down and rejoin the cluster. All the caches
will be clear on restart, and if newly join node become master
instance, it can break the functionality. This patch is re-populating
all the required caches

Change-Id: I2f7b6f8f8871eb7c6fc7c96d9e4e121adbf5c950
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMerge "Fix the feature name of hwvtepsouthbound in ./hwvtepsouthbound-karaf/pom.xml"
Sam Hague [Thu, 5 Nov 2015 21:17:09 +0000 (21:17 +0000)]
Merge "Fix the feature name of hwvtepsouthbound in ./hwvtepsouthbound-karaf/pom.xml"

8 years agoMerge "Extend southbound-it testDpdkSwitch() to test all the OVS-DPDK interface types...
Sam Hague [Thu, 5 Nov 2015 21:03:11 +0000 (21:03 +0000)]
Merge "Extend southbound-it testDpdkSwitch() to test all the OVS-DPDK interface types [dpdk,dpdkr,dpdkvhostuser..]"

8 years agoAdded command patterns to update OperDS
Vishal Thapar [Wed, 4 Nov 2015 03:55:39 +0000 (09:25 +0530)]
Added command patterns to update OperDS

1. Command pattern for Global and PhysicalSwitch
2. Update OperDS with Global and PhysicalSwitch tables

Patchset2:
Added skeletal code more command pattern classes, functionality TBD.
Handle updation of instance iid on connect/connected

Patchset3:
Clear Operational DataStore when switch disconnects
Add PhysicalSwitchRemove command

Change-Id: I519c28a59edcd3a99ac5fadfda420b65edb85abb
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMore changes for SFC
Sam Hague [Thu, 5 Nov 2015 15:10:01 +0000 (10:10 -0500)]
More changes for SFC

Change-Id: I1e6b52b9726d6fe85ccde01a57bdb927821690ca
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFix utils exports
Sam Hague [Thu, 5 Nov 2015 15:09:21 +0000 (10:09 -0500)]
Fix utils exports

Change-Id: I0032fd368af59e23cecb26736b0e34723df58a0f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoModify NSH MatchUtils
Sam Hague [Thu, 5 Nov 2015 15:08:55 +0000 (10:08 -0500)]
Modify NSH MatchUtils

Change-Id: I85057e96b399dea8d9f09d087da6014dc780ac8c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd Flow utils
Sam Hague [Thu, 5 Nov 2015 15:07:38 +0000 (10:07 -0500)]
Add Flow utils

Change-Id: I120391618945908c358c4da4728ad0c5243c721f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFix the feature name of hwvtepsouthbound in ./hwvtepsouthbound-karaf/pom.xml
Peng Zhang [Thu, 5 Nov 2015 03:47:13 +0000 (11:47 +0800)]
Fix the feature name of hwvtepsouthbound in ./hwvtepsouthbound-karaf/pom.xml

Change-Id: I994bc48981ec43cf206e07a9ac877ed1e356fe92
Signed-off-by: Peng Zhang <pzhang@ctbri.com.cn>
8 years agoExtend southbound-it testDpdkSwitch() to test all the OVS-DPDK interface types [dpdk...
Praveen Mala [Tue, 3 Nov 2015 01:43:29 +0000 (20:43 -0500)]
Extend southbound-it testDpdkSwitch() to test all the OVS-DPDK interface types [dpdk,dpdkr,dpdkvhostuser..]

Change-Id: Iab6532b33fe1d2eb0ab61c1434e9560fdb7b530f
Signed-off-by: Praveen Mala <praveen.mala@intel.com>
8 years agoMerge changes If2ef6c5c,I4b8e0a28
Sam Hague [Wed, 4 Nov 2015 01:48:46 +0000 (01:48 +0000)]
Merge changes If2ef6c5c,I4b8e0a28

* changes:
  Fix nsh flow
  fix for missing sfc feature

8 years agoFix nsh flow
Sam Hague [Tue, 3 Nov 2015 13:09:17 +0000 (08:09 -0500)]
Fix nsh flow

Change-Id: If2ef6c5c6986ca42e7a753a1e43202dd5cb4bfcc
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agofix for missing sfc feature
Sam Hague [Wed, 4 Nov 2015 00:03:17 +0000 (19:03 -0500)]
fix for missing sfc feature

Change-Id: I4b8e0a28c3dcca1f2809ca820f77be479dbe236c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Use config for hwvtepsouthbound"
Sam Hague [Tue, 3 Nov 2015 23:31:25 +0000 (23:31 +0000)]
Merge "Use config for hwvtepsouthbound"

8 years agoUse config for hwvtepsouthbound
Vishal Thapar [Mon, 2 Nov 2015 12:12:54 +0000 (17:42 +0530)]
Use config for hwvtepsouthbound

This is counterpart to https://git.opendaylight.org/gerrit/27578

Patchset2:
Remove null check for ovsdbConnection in handleOwnershipChange. Since this
is always non-null, we end up not starting OVSDBManager for hwvtep.

Change-Id: I8900794cf4f75b837fd6efb406f18addc9cfe3a0
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoUT for ovsdb.southbound transact package
Rashmi Pujar [Tue, 3 Nov 2015 16:12:49 +0000 (11:12 -0500)]
UT for ovsdb.southbound transact package

4. TerminationPointCreateCommand.java
5. TerminationPointUpdateCommand.java

Change-Id: I7647196548b676ada6a4fa902f60f7e71644901c
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoInline variables
Stephen Kitt [Mon, 2 Nov 2015 13:52:01 +0000 (14:52 +0100)]
Inline variables

Change-Id: I7999f158b755eb9b0a71bd38d3e065cc766f45a7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoDrop redundant type information
Stephen Kitt [Mon, 2 Nov 2015 13:26:13 +0000 (14:26 +0100)]
Drop redundant type information

Change-Id: I030f911f2e699266b6f85af7a0185a4714e34fb1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoFix up loops
Stephen Kitt [Mon, 2 Nov 2015 13:17:23 +0000 (14:17 +0100)]
Fix up loops

Use foreach loops instead of explicit Iterators.
Use switch statements instead of mutually-exclusive if statements.

Change-Id: I2239a2f119686efc65ae062a95b4edbda99c5ded
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBoxing/unboxing clean-up
Stephen Kitt [Mon, 2 Nov 2015 12:16:48 +0000 (13:16 +0100)]
Boxing/unboxing clean-up

Change-Id: I9c0b9386a5befc58e0a93ad654e9fb8a8531e7bd
Signed-off-by: Stephen Kitt <skitt@redhat.com>