controller.git
10 years agoGenerate ADDED events for Node and NodeConnector 43/3843/2
Moiz Raja [Thu, 19 Dec 2013 01:14:38 +0000 (17:14 -0800)]
Generate ADDED events for Node and NodeConnector

Components like switch manager need to see an ADDED event come in for Node and NodeConnector before
they accept changes for those elements. This commit first checks whether a Node/NodeConnector are
already known to the DataBrokerService. If they are not known then it notifies the listeners of an ADDED
event otherwise it notifies it of a CHANGED event

Also implemented node removal. NOTE: NodeConnector removed events do not seem to be coming through.

Change-Id: Idcbe7fdce37c16158614f62b56767bed624bc803
Signed-off-by: Moiz Raja <moraja@cisco.com>
10 years agoMerge "DataPacketAdapter fix"
Ed Warnicke [Wed, 18 Dec 2013 20:16:06 +0000 (20:16 +0000)]
Merge "DataPacketAdapter fix"

10 years agoMerge "Lazily initialize jaxb context in NB application"
Alessandro Boch [Wed, 18 Dec 2013 20:13:50 +0000 (20:13 +0000)]
Merge "Lazily initialize jaxb context in NB application"

10 years agoDataPacketAdapter fix 38/3838/1
Juraj Sebin [Wed, 18 Dec 2013 17:38:29 +0000 (18:38 +0100)]
DataPacketAdapter fix

added incomingNodeConnector for RawPacket from incoming PacketReceived so DataPacketService dont discard it

Change-Id: I7448296ae06b6170edf24289dfd12fc7fd185312
Signed-off-by: Juraj Sebin <jsebin@cisco.com>
10 years agoLazily initialize jaxb context in NB application 08/3808/2
Prasanth Pallamreddy [Wed, 18 Dec 2013 05:26:20 +0000 (21:26 -0800)]
Lazily initialize jaxb context in NB application

Change-Id: Ibac5614aa1b23ff360bcce3ea29091f0a7a78906
Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
10 years agoFix method isSame in generated Abstract Modules. 31/3831/1
Tomas Olvecky [Wed, 18 Dec 2013 17:16:42 +0000 (18:16 +0100)]
Fix method isSame in generated Abstract Modules.

When dealing with list of dependencies, == cannot be used. Instead,
both lists must be equal, and each dependency must be == to the old one.

Change-Id: I42d489d99ff7addc9d492f4878e7a13be8d9584a
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Fixed Bug 250 - bits serialization between Binding Broker and DOM broker"
Ed Warnicke [Wed, 18 Dec 2013 16:10:41 +0000 (16:10 +0000)]
Merge "Fixed Bug 250 - bits serialization between Binding Broker and DOM broker"

10 years agoFixed Bug 250 - bits serialization between Binding Broker and DOM broker 20/3820/2
Tony Tkacik [Wed, 18 Dec 2013 13:59:11 +0000 (14:59 +0100)]
Fixed Bug 250 - bits serialization between Binding Broker and DOM broker

  - fixed serialization bug for YANG bits type when crossing brokers
  - Added regression test for bug, based on provided bug report
  - Decreased log level to debug and trace for some code generation
    functionality.

Change-Id: I07982bb7ffefb4350ec4922c02207eb4dc368ab8
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMD-SAL Statistics Manager - Changed Group/Meter Augmentataion location in operational... 95/3795/4
Anil Vishnoi [Tue, 17 Dec 2013 13:28:30 +0000 (18:58 +0530)]
MD-SAL Statistics Manager - Changed Group/Meter Augmentataion location in operational data tree
Also added check, to only entertain multipart responses associated to the multipart request sent
by statistics-manager.

Change-Id: I51b1f4c9245ca30914293add0ea5fbefb3f1945b
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
10 years agoMerge "Persist service references as separate MBeans."
Ed Warnicke [Wed, 18 Dec 2013 12:12:43 +0000 (12:12 +0000)]
Merge "Persist service references as separate MBeans."

10 years agoMerge "Switched codecs infrastructure to use yang-data-impl codecs"
Ed Warnicke [Wed, 18 Dec 2013 11:20:25 +0000 (11:20 +0000)]
Merge "Switched codecs infrastructure to use yang-data-impl codecs"

10 years agoMerge "Fixed RESTConf support for identity-ref build-in datatype"
Ed Warnicke [Wed, 18 Dec 2013 11:20:14 +0000 (11:20 +0000)]
Merge "Fixed RESTConf support for identity-ref build-in datatype"

10 years agoMerge "Verification of keys in list"
Ed Warnicke [Wed, 18 Dec 2013 11:19:55 +0000 (11:19 +0000)]
Merge "Verification of keys in list"

10 years agoMerge "Fix list of dependencies mapping for readable/writable jmx wrappers"
Ed Warnicke [Wed, 18 Dec 2013 10:53:47 +0000 (10:53 +0000)]
Merge "Fix list of dependencies mapping for readable/writable jmx wrappers"

10 years agoSwitched codecs infrastructure to use yang-data-impl codecs 49/3749/8
Martin Sunal [Wed, 18 Dec 2013 09:24:12 +0000 (10:24 +0100)]
Switched codecs infrastructure to use yang-data-impl codecs

- Codecs are used for tranlation of JSON/XML values to SimpleNode values and vice versa
- Leafref is encoded as String

Change-Id: Ibe5b4a23d5dad6373a2dcf7d8723a7dff135cf2a
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed RESTConf support for identity-ref build-in datatype 01/3701/3
Tony Tkacik [Tue, 17 Dec 2013 16:26:05 +0000 (17:26 +0100)]
Fixed RESTConf support for identity-ref build-in datatype

- Created implementation of codec for identityref
- Identityref is supported in XML and JSON
- Tests

Change-Id: I813f1f52e990317b6adf30f1d0d8a164c60a4901
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoVerification of keys in list 05/3605/3
Tony Tkacik [Tue, 17 Dec 2013 16:26:00 +0000 (17:26 +0100)]
Verification of keys in list

- verification of keys in list against list yang structure

Change-Id: Ieb46eea67a7d3173958184ced10cec1b853bb7fe
Signed-off-by: Martin Sunal <msunal@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Netconf SSH user authentication using UserManager"
Giovanni Meo [Tue, 17 Dec 2013 14:53:09 +0000 (14:53 +0000)]
Merge "Netconf SSH user authentication using UserManager"

10 years agoNetconf SSH user authentication using UserManager 77/3677/7
Martin Bobak [Thu, 12 Dec 2013 14:47:01 +0000 (15:47 +0100)]
Netconf SSH user authentication using UserManager

Change-Id: I48112f86cf8f839d5cbfdc62f0b7a6866118ed25
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoMerge changes I1474351f,I2ddc5ffa
Giovanni Meo [Tue, 17 Dec 2013 13:46:06 +0000 (13:46 +0000)]
Merge changes I1474351f,I2ddc5ffa

* changes:
  FRM to properly handle timed flows in case of switch down/up
  Adding password salting

10 years agoMerge "Use equalsIgnoreCase when comparing subnet name to default subnet. Using equal...
Giovanni Meo [Tue, 17 Dec 2013 13:43:22 +0000 (13:43 +0000)]
Merge "Use equalsIgnoreCase when comparing subnet name to default subnet. Using equals or == is not accurate enough. Also, move declaration of variable to be where it's used, to save its allocation before an 'if' validation that's not related to it."

10 years agoUse equalsIgnoreCase when comparing subnet name to default subnet. 61/3761/2
Alissa Bonas [Mon, 16 Dec 2013 17:19:08 +0000 (19:19 +0200)]
Use equalsIgnoreCase when comparing subnet name to default subnet.
Using equals or == is not accurate enough.
Also, move declaration of variable to be where it's used,
to save its allocation before an 'if' validation that's not related to
it.

Change-Id: Icc5480055b8455b11b1c6674b1856ece6d97de91
Signed-off-by: Alissa Bonas <abonas@redhat.com>
10 years agoAdded Missing DELETE to allowed CORS methods. 07/3807/1
Thomas Bachman [Tue, 17 Dec 2013 02:09:44 +0000 (18:09 -0800)]
Added Missing DELETE to allowed CORS methods.

Change-Id: I4415666588fec3bb7f7c11b4850817ad006a8353
Signed-off-by: Thomas Bachman <tbachman@yahoo.com>
10 years agoMerge "Changed zeromq-routingtable module to remoterpc-routingtable based on coderevi...
Giovanni Meo [Tue, 17 Dec 2013 18:24:32 +0000 (18:24 +0000)]
Merge "Changed zeromq-routingtable module to remoterpc-routingtable based on codereview comments"

10 years agoFix date initialization in NetconfOperationServiceImplTest. 99/3799/2
Tomas Olvecky [Tue, 17 Dec 2013 17:44:46 +0000 (18:44 +0100)]
Fix date initialization in NetconfOperationServiceImplTest.

Use SimpleDateFormat instead of Date(0) as the later fixes the date to UTC rendering local date to
1969-12-31 for timezones > 0

Change-Id: I455610603e66b9748df8e5b035761ca22617c4eb
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoPersist service references as separate MBeans. 46/3746/3
Tomas Olvecky [Mon, 16 Dec 2013 10:39:41 +0000 (11:39 +0100)]
Persist service references as separate MBeans.

Create dummy MBean - ServiceReferenceMXBean - that contains link to implementation of the service as an attribute.
Add support for resolving of SR to dependency resolver. Each time user saves SR, create MBean and
add the interface QName together with user defined reference name to ObjectName of the newly created SR MBean.

Change-Id: I71ddb762e00d9be8b426fb979ff5ade046d46050
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoFix list of dependencies mapping for readable/writable jmx wrappers 48/3748/2
Maros Marsalek [Mon, 16 Dec 2013 11:15:11 +0000 (12:15 +0100)]
Fix list of dependencies mapping for readable/writable jmx wrappers

Attributes for list of dependencies can be accessed from (testing) code

Change-Id: I966912210a74bef40a7e6a74d506dbc72a41f34c
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoOn openflow plugin restart, NPE in tx poller 78/3778/1
Alessandro Boch [Tue, 17 Dec 2013 01:15:00 +0000 (17:15 -0800)]
On openflow plugin restart, NPE in tx poller

- In TopologyServiceShim tx poller thread task does not
  check is IOFStatisticsManager provider is available.
  Protocol plugin restart is a way to consistently
  expose the issue.

Change-Id: I9033eb5dd03c1465f465a4e2ef254db760ca0651
Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoFRM to properly handle timed flows in case of switch down/up 77/3777/1
Alessandro Boch [Tue, 17 Dec 2013 00:29:22 +0000 (16:29 -0800)]
FRM to properly handle timed flows in case of switch down/up

- When node reconnects to controller, plugin will send remove all flow message.
  FRM will receive flow removed message and should toggle the installInHw flag
  only for the timed static flows, not all of them. At the end a timed flow with
  original configured timeout (idle or hard) is no longer valid later on.
- Fix bug in flow ui

Change-Id: I1474351fa750029246b89d11bdefb41e9bd6eefd
Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoChanged zeromq-routingtable module to remoterpc-routingtable based on codereview... 55/3655/4
Basheeruddin Ahmed [Mon, 16 Dec 2013 23:58:38 +0000 (15:58 -0800)]
Changed zeromq-routingtable module to remoterpc-routingtable based on codereview comments

Change-Id: Idbdeca125c81c382a4ec0eec479c614b5ecf891a
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
10 years agoMerge "Added tests for reading: - operational data - configuration data"
Ed Warnicke [Mon, 16 Dec 2013 23:03:48 +0000 (23:03 +0000)]
Merge "Added tests for reading: - operational data - configuration data"

10 years agoMD-SAL Statistics Manager: Added support for queue statistics collection 65/3765/1
Anil Vishnoi [Mon, 16 Dec 2013 10:51:51 +0000 (16:21 +0530)]
MD-SAL Statistics Manager: Added support for queue statistics collection

Change-Id: I173d7722a8d1684e069c34733fdca0613c1d6530
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
10 years agoMerge "Improve iteration over subnets map by using entrySet instead of keyset. It...
Alessandro Boch [Mon, 16 Dec 2013 20:07:09 +0000 (20:07 +0000)]
Merge "Improve iteration over subnets map by using entrySet instead of keyset. It is more efficient to iterate  on the entrySet because it avoids the Map.get(key) lookup."

10 years agoMerge "Simplify hasNodeConnector method in Subnet class. Reduce 'if' conditions for...
Alessandro Boch [Mon, 16 Dec 2013 20:06:14 +0000 (20:06 +0000)]
Merge "Simplify hasNodeConnector method in Subnet class. Reduce 'if' conditions for improved readability."

10 years agoAdding password salting 23/3723/4
Alessandro Boch [Fri, 13 Dec 2013 20:58:54 +0000 (12:58 -0800)]
Adding password salting

- When A UserConfig object is created, generate its 64 bit long salt
  and use it to salt the clear text password before hashing.

Change-Id: I2ddc5ffa061cdef59d01caa6d98cb6eb4b7be014
Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoMerge "Add consistency check of visible yang modules to netconf."
Ed Warnicke [Mon, 16 Dec 2013 15:54:13 +0000 (15:54 +0000)]
Merge "Add consistency check of visible yang modules to netconf."

10 years agoMerge "Fixed netconf monitoring."
Ed Warnicke [Mon, 16 Dec 2013 15:52:41 +0000 (15:52 +0000)]
Merge "Fixed netconf monitoring."

10 years agoSimplify method isMutualExclusive in Subnet. 59/3759/1
Alissa Bonas [Mon, 16 Dec 2013 15:28:06 +0000 (17:28 +0200)]
Simplify method isMutualExclusive in Subnet.
Remove redundant 'if' statements.

Change-Id: I4ba0b5da22095e5d294eea008119dc49159795af
Signed-off-by: Alissa Bonas <abonas@redhat.com>
10 years agoMerge "Fixed bug in cross-broker RPC routing"
Ed Warnicke [Mon, 16 Dec 2013 15:23:04 +0000 (15:23 +0000)]
Merge "Fixed bug in cross-broker RPC routing"

10 years agoSimplify hasNodeConnector method in Subnet class. 58/3758/1
Alissa Bonas [Mon, 16 Dec 2013 15:15:21 +0000 (17:15 +0200)]
Simplify hasNodeConnector method in Subnet class.
Reduce 'if' conditions for improved readability.

Change-Id: I8ade7bd8546ddc3396c24e8cc3ba6e13abaaa07c
Signed-off-by: Alissa Bonas <abonas@redhat.com>
10 years agoAdded tests for reading: 54/3754/1
Ladislav Borak [Mon, 16 Dec 2013 14:39:10 +0000 (15:39 +0100)]
Added tests for reading:
- operational data
- configuration data

Change-Id: I8d771ac061d0d7cc5c4187133e2bf0a3ddb87252
Signed-off-by: Ladislav Borak <lborak@cisco.com>
10 years agoImprove iteration over subnets map by using entrySet instead of keyset. 55/3755/1
Alissa Bonas [Mon, 16 Dec 2013 14:41:28 +0000 (16:41 +0200)]
Improve iteration over subnets map by using entrySet instead of keyset.
It is more efficient to iterate  on the entrySet because
it avoids the Map.get(key) lookup.

Change-Id: I8ec04ebfe5b22b67a488b81987f0d1f8bd1e107d
Signed-off-by: Alissa Bonas <abonas@redhat.com>
10 years agoRefactor Subnet.isSubnetOf - reduce number of 'if' statements. 52/3752/2
Alissa Bonas [Mon, 16 Dec 2013 14:06:20 +0000 (16:06 +0200)]
Refactor Subnet.isSubnetOf - reduce number of 'if' statements.
Added unitests.

Change-Id: Ife074b9afdf029ca02e02af35d53c4a2869681f6
Signed-off-by: Alissa Bonas <abonas@redhat.com>
10 years agoMD-SAL Statistics Manger - Added support for fetching port statistics 31/3731/1
Anil Vishnoi [Sat, 14 Dec 2013 11:18:43 +0000 (16:48 +0530)]
MD-SAL Statistics Manger - Added support for fetching port statistics

Change-Id: Ic987b3ea3c920ae9899877c316708b53d132555f
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
10 years agoMerge "Adding Enum for Output -Port Values"
Ed Warnicke [Sat, 14 Dec 2013 15:23:33 +0000 (15:23 +0000)]
Merge "Adding Enum for Output -Port Values"

10 years agoMerge "Revert "Reverting until appropriate Gerrit for Openflowplugin can be provided.""
Ed Warnicke [Sat, 14 Dec 2013 14:43:52 +0000 (14:43 +0000)]
Merge "Revert "Reverting until appropriate Gerrit for Openflowplugin can be provided.""

10 years agoAdding Enum for Output -Port Values 14/3714/3
Gaurav Bhagwani [Fri, 13 Dec 2013 17:22:24 +0000 (22:52 +0530)]
Adding Enum for Output -Port Values

Signed-off-by: Gaurav Bhagwani <gaurav.bhagwani@ericsson.com>
Change-Id: Ic77422b4ce0b1f047df25ce820001707e90813d8
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMD-SAL Statistics Manager - Adding support for individual flow stats 08/3708/2
Anil Vishnoi [Tue, 10 Dec 2013 18:36:31 +0000 (00:06 +0530)]
MD-SAL Statistics Manager - Adding support for individual flow stats
and aggregate flow statistics.

Change-Id: I0aaa4a70dd8083ed7d6b39d06fe1b040510efbc2
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
10 years agoMerge "Added support for union yang types to netconf."
Ed Warnicke [Sat, 14 Dec 2013 01:25:34 +0000 (01:25 +0000)]
Merge "Added support for union yang types to netconf."

10 years agoMerge "model of switch features in md-sal"
Ed Warnicke [Sat, 14 Dec 2013 00:54:11 +0000 (00:54 +0000)]
Merge "model of switch features in md-sal"

10 years agoMerge "Fixed union serialization and deserialization"
Ed Warnicke [Fri, 13 Dec 2013 19:54:40 +0000 (19:54 +0000)]
Merge "Fixed union serialization and deserialization"

10 years agoFixed bug in cross-broker RPC routing 00/3700/2
Tony Tkacik [Fri, 13 Dec 2013 13:11:03 +0000 (14:11 +0100)]
Fixed bug in cross-broker RPC routing

  - Fixed cross-broker (Binding to DOM) and (DOM to Binding)
    rpc routing by adding explicit routing and invocation strategies

  - Lowered reporting level for fingAugmentableArgument to DEBUG
    so it does not polute logs

  - Extracted and converted RpcProviderRegistry implementation
    from BindingAwareBrokerImpl (Xtend) to RpcProviderRegistryImpl
    (java).

Change-Id: I8339abdc864162c70a149cf59fdbdf97093ae8c0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed union serialization and deserialization 21/3721/2
Tony Tkacik [Fri, 13 Dec 2013 19:04:32 +0000 (20:04 +0100)]
Fixed union serialization and deserialization

Change-Id: I8cd8b325fcea1dfd52e2b4166cf6ba4d9ec866a9
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agomodel of switch features in md-sal 81/3681/4
Juraj Sebin [Fri, 13 Dec 2013 14:35:52 +0000 (15:35 +0100)]
model of switch features in md-sal

flow-node-inventory.yang:
added container switch-features into flow-node which contains list of
different capabilities

Change-Id: Icee61676c3e7e2dc2391aac8c4995f51d05d84a3
Signed-off-by: Juraj Sebin <jsebin@cisco.com>
10 years agoRevert "Reverting until appropriate Gerrit for Openflowplugin can be provided." 13/3713/1
Ed Warnicke [Fri, 13 Dec 2013 16:54:48 +0000 (16:54 +0000)]
Revert "Reverting until appropriate Gerrit for Openflowplugin can be provided."

This reverts commit e192dfabeb6003044e9c99da9694e4a6cd1361a1.

Change-Id: If3ac56f309897c15de72632c9fd965f9fe888952
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMerge "Make sure the target-ide are excluded by checkstyle"
Alessandro Boch [Fri, 13 Dec 2013 16:41:26 +0000 (16:41 +0000)]
Merge "Make sure the target-ide are excluded by checkstyle"

10 years agoMerge "This sanity test is sporatically failing in Jenkins for no good reason. Rever...
Ed Warnicke [Fri, 13 Dec 2013 15:05:58 +0000 (15:05 +0000)]
Merge "This sanity test is sporatically failing in Jenkins for no good reason.  Reverting to restabalize "

10 years agoMerge "Reverting until appropriate Gerrit for Openflowplugin can be provided."
Ed Warnicke [Fri, 13 Dec 2013 15:05:46 +0000 (15:05 +0000)]
Merge "Reverting until appropriate Gerrit for Openflowplugin can be provided."

10 years agoThis sanity test is sporatically failing in Jenkins for no good reason. Reverting... 05/3705/1
Ed Warnicke [Fri, 13 Dec 2013 14:45:20 +0000 (14:45 +0000)]
This sanity test is sporatically failing in Jenkins for no good reason.  Reverting to restabalize 

Revert "Bug 116 - Revisit SanityTest"

This reverts commit effdf86b58e39060b75e6090596b123ec6e8ef69.

Change-Id: Iff90bdb275681451952b9ab21eb0d04c07786be2
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoReverting until appropriate Gerrit for Openflowplugin can be provided. 03/3703/1
Ed Warnicke [Fri, 13 Dec 2013 14:14:12 +0000 (14:14 +0000)]
Reverting until appropriate Gerrit for Openflowplugin can be provided.

Revert "VLAN bug fixes"

This reverts commit 18e3ef9f1d021b9f5fef70e8a5310b399c4c6459.

Change-Id: I7c6df59e301ecd24d4497f516d8f67517804b33d
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMerge "VLAN bug fixes"
Ed Warnicke [Fri, 13 Dec 2013 11:46:57 +0000 (11:46 +0000)]
Merge "VLAN bug fixes"

10 years agoAdded support for union yang types to netconf. 78/3678/2
Maros Marsalek [Thu, 5 Dec 2013 12:39:22 +0000 (13:39 +0100)]
Added support for union yang types to netconf.

Change-Id: I3f936850fdf9a2c96e0ccda50a5178da6d90a92d
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMake sure the target-ide are excluded by checkstyle 95/3695/1
Giovanni Meo [Fri, 13 Dec 2013 10:39:33 +0000 (11:39 +0100)]
Make sure the target-ide are excluded by checkstyle

Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Change-Id: Ib817c7c6e9729dfa015fc286c3e89e32b83efeb3

10 years agoAdd consistency check of visible yang modules to netconf. 92/3692/1
Maros Marsalek [Fri, 13 Dec 2013 08:30:49 +0000 (09:30 +0100)]
Add consistency check of visible yang modules to netconf.

Netconf connector to config subsystem performs this check before a netconf session is established.
This check consists of comparing yang modules visible to config subsystem to modules visibile to yangstore.
If an inconsistency is detected, session negotiation is cancelled and the session is dropped.

Change-Id: I6e07c6aa0d6c3bf1ee5fd238cfc7ec664951fe87
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Notifying listeners when a subnet gets added or removed"
Alessandro Boch [Fri, 13 Dec 2013 07:20:34 +0000 (07:20 +0000)]
Merge "Notifying listeners when a subnet gets added or removed"

10 years agoVLAN bug fixes 79/3679/2
Prasanna Huddar [Thu, 12 Dec 2013 14:56:17 +0000 (20:26 +0530)]
VLAN bug fixes

Signed-off-by: Prasanna Huddar <prasanna.huddar@ericsson.com>
Change-Id: Idc8d6a981781e738d3e7b587bba177fbcaf3c708

10 years agoFixed netconf monitoring. 61/3661/6
Milos Fabian [Wed, 11 Dec 2013 14:44:23 +0000 (15:44 +0100)]
Fixed netconf monitoring.

-added extension of ietf-netconf-monitoring
-fixed reporting of host address
-fixed reporting of transport
-added reporting of session identifier (client,persister)
-fixed send netconf message with additional header

Change-Id: I779c81c77641b813abcb726f94f2a78f35efbd6d
Signed-off-by: Milos Fabian <milfabia@cisco.com>
10 years agoNotifying listeners when a subnet gets added 87/3687/1
Asad Ahmed [Thu, 12 Dec 2013 22:05:27 +0000 (14:05 -0800)]
Notifying listeners when a subnet gets added
or removed

Change-Id: Ieea5d9df6ed0fea1276c239365625c0d158f658e
Signed-off-by: Asad Ahmed <asaahmed@cisco.com>
10 years agoMerge "Openflowyang - added StripVlan, nwTos changes"
Ed Warnicke [Thu, 12 Dec 2013 21:22:32 +0000 (21:22 +0000)]
Merge "Openflowyang - added StripVlan, nwTos changes"

10 years agoOpenflowyang - added StripVlan, nwTos changes 71/3671/3
Gaurav Bhagwani [Thu, 12 Dec 2013 17:48:04 +0000 (23:18 +0530)]
Openflowyang - added StripVlan, nwTos changes

Signed-off-by: Gaurav Bhagwani <gaurav.bhagwani@ericsson.com>
Change-Id: Id459209edd3674415a01341cbbc5f0d6a10a583a

10 years agoMerge "Send SystemName TLV in LLDP message."
Alessandro Boch [Thu, 12 Dec 2013 17:44:35 +0000 (17:44 +0000)]
Merge "Send SystemName TLV in LLDP message."

10 years agoMerge "Add Set<String> getAvailableModuleFactoryQNames() to config-api."
Ed Warnicke [Thu, 12 Dec 2013 15:08:32 +0000 (15:08 +0000)]
Merge "Add Set<String> getAvailableModuleFactoryQNames() to config-api."

10 years agoMerge "Added xml storage adapter bundle fragments for config persister."
Ed Warnicke [Thu, 12 Dec 2013 14:51:32 +0000 (14:51 +0000)]
Merge "Added xml storage adapter bundle fragments for config persister."

10 years agoMerge "Added more granular error reporting during commit validation."
Ed Warnicke [Thu, 12 Dec 2013 14:41:01 +0000 (14:41 +0000)]
Merge "Added more granular error reporting during commit validation."

10 years agoMerge "removed parent dependency on pax-exam-container-native"
Ed Warnicke [Thu, 12 Dec 2013 14:40:11 +0000 (14:40 +0000)]
Merge "removed parent dependency on pax-exam-container-native"

10 years agoAdd Set<String> getAvailableModuleFactoryQNames() to config-api. 75/3675/1
Tomas Olvecky [Thu, 12 Dec 2013 13:22:58 +0000 (14:22 +0100)]
Add Set<String> getAvailableModuleFactoryQNames() to config-api.

Allow querying Config Registry and each transaction for set of qnames belonging to ModuleFactory classes.
This is helpful for netconf - allows checking for race conditions between yang store and config-manager.
Modify config code generator to add @ModuleQName annotation to each abstract factory class.

Change-Id: I6e8f972708883137610c09d274d52aedb1380120
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoAdded xml storage adapter bundle fragments for config persister. 70/3670/1
Maros Marsalek [Thu, 12 Dec 2013 10:12:11 +0000 (11:12 +0100)]
Added xml storage adapter bundle fragments for config persister.

File and Directory based xml adapters are now available.
Only File xml adapter is used so far to persist current configuration.

Directory based persister is still using plain text to keep backwards compatibility.

Change-Id: If1a83701ce23d36313c943e9fe49bd4e704afe27
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoSend SystemName TLV in LLDP message. 58/3658/1
Maurice Qureshi [Thu, 12 Dec 2013 02:30:15 +0000 (18:30 -0800)]
Send SystemName TLV in LLDP message.

Some applications may need System Name TLV, therefore include
SystemName TLV in the LLDP message sent by Controller

Change-Id: I7226444c46a87b2e1618d1ee47026ccd4e9c2bef
Signed-off-by: Maurice Qureshi <maquresh@cisco.com>
10 years agoAdded more granular error reporting during commit validation. 46/3646/1
Tony Tkacik [Wed, 11 Dec 2013 15:28:43 +0000 (16:28 +0100)]
Added more granular error reporting during commit validation.

Change-Id: I96a9f2fdd256e1b394d3a21fbaccf16f7350d316
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Improve logging of persister and netconf client."
Giovanni Meo [Wed, 11 Dec 2013 14:39:56 +0000 (14:39 +0000)]
Merge "Improve logging of persister and netconf client."

10 years agoMerge "Remove jolokia dependency from config-subsystem."
Giovanni Meo [Wed, 11 Dec 2013 14:20:46 +0000 (14:20 +0000)]
Merge "Remove jolokia dependency from config-subsystem."

10 years agoremoved parent dependency on pax-exam-container-native 38/3638/3
Martin Bobak [Tue, 10 Dec 2013 19:07:29 +0000 (20:07 +0100)]
removed parent dependency on pax-exam-container-native

Change-Id: I366e22d2f36d6f5657f8f077d7661b2b3b4b98a3
Signed-off-by: Martin Bobak <mbobak@cisco.com>
10 years agoImprove logging of persister and netconf client. 14/3614/6
Tomas Olvecky [Tue, 10 Dec 2013 15:58:33 +0000 (16:58 +0100)]
Improve logging of persister and netconf client.

Add a debug message measuring time spent waiting for netconf server to reply in NetconfClient.
Log with error level failure to send/recieve netconf message in config-persister-impl.
Add TODOs to config-manager's dependency resolver for detecting cycles.

Change-Id: I412abad141b40eb9346ef404d2efeba8c197e018
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Bug 116 - Revisit SanityTest"
Giovanni Meo [Wed, 11 Dec 2013 13:37:15 +0000 (13:37 +0000)]
Merge "Bug 116 - Revisit SanityTest"

10 years agoRemove jolokia dependency from config-subsystem. 37/3637/1
Tomas Olvecky [Wed, 11 Dec 2013 13:00:34 +0000 (14:00 +0100)]
Remove jolokia dependency from config-subsystem.

Remove jolokia client from config-util and tests that were starting jolokia.

Change-Id: Ibadf96c6d03d5cc325b4c9d8a01cdbb230550e4b
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Get rid of legacy ref_ prefixes in configuration"
Giovanni Meo [Wed, 11 Dec 2013 11:38:25 +0000 (11:38 +0000)]
Merge "Get rid of legacy ref_ prefixes in configuration"

10 years agoMerge "Added support for persistance of service references to netconf."
Giovanni Meo [Wed, 11 Dec 2013 11:28:48 +0000 (11:28 +0000)]
Merge "Added support for persistance of service references to netconf."

10 years agoMerge "Add service reference binding to config registry."
Giovanni Meo [Wed, 11 Dec 2013 11:20:16 +0000 (11:20 +0000)]
Merge "Add service reference binding to config registry."

10 years agoGet rid of legacy ref_ prefixes in configuration 25/3625/2
Robert Varga [Tue, 10 Dec 2013 23:51:49 +0000 (00:51 +0100)]
Get rid of legacy ref_ prefixes in configuration

Change-Id: I0c3a6f05bcfcf71ebf857ce7e2355af008f68793
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
10 years agoAdded support for persistance of service references to netconf. 20/3620/2
Maros Marsalek [Mon, 9 Dec 2013 13:31:53 +0000 (14:31 +0100)]
Added support for persistance of service references to netconf.

Created reference names under services/ subtree are now persisted and available for further edit-config operations.

Change-Id: I366eaab457e9264d266e16eb4e1a1ad8d97d33bc
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoAdd service reference binding to config registry. 69/3569/8
Tomas Olvecky [Mon, 9 Dec 2013 12:20:56 +0000 (13:20 +0100)]
Add service reference binding to config registry.

Add a database for persisting service references between commits. In netconf modules
are wired together via link in /services/service xml subtree. Each service has an
xpath pointer back to a /modules/module that implements the service. Consumer of a
service then maintains a link to the service via its namespace and reference name.
This commit fixes problem of reference names not surviving commits.

Change-Id: I784f99617bb0072fc4dc3762a28e30f9b9bcf111
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoMerge "Fixed deserialization of IdentityRefs in Restconf URI."
Ed Warnicke [Tue, 10 Dec 2013 20:01:51 +0000 (20:01 +0000)]
Merge "Fixed deserialization of IdentityRefs in Restconf URI."

10 years agoBug 116 - Revisit SanityTest 20/3420/3
Prasanth Pallamreddy [Fri, 22 Nov 2013 00:01:59 +0000 (16:01 -0800)]
Bug 116 - Revisit SanityTest

  - Sanity test is now an integration test
  - Introduce maven-controller-plugin to handle startup & shutdown
    of controller process and run away processes
  - Fix run.bat issue with -start option

Change-Id: I4489f2f581561377da8afe103291fbc9f1bdf6f0
Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
10 years agoMerge "Bug 211 - Fixed codec generation when transitive dependencies (parents) are...
Ed Warnicke [Tue, 10 Dec 2013 19:40:02 +0000 (19:40 +0000)]
Merge "Bug 211 - Fixed codec generation when transitive dependencies (parents) are not available"

10 years agoFixed deserialization of IdentityRefs in Restconf URI. 12/3612/2
Tony Tkacik [Tue, 10 Dec 2013 15:10:37 +0000 (16:10 +0100)]
Fixed deserialization of IdentityRefs in Restconf URI.

Change-Id: I639bb880239fa995de3af85cb054f249fa973dba
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoBug 211 - Fixed codec generation when transitive dependencies (parents) are not available 11/3611/3
Tony Tkacik [Tue, 10 Dec 2013 14:21:07 +0000 (15:21 +0100)]
Bug 211 - Fixed codec generation when transitive dependencies (parents) are not available

  - Classloader for each encountered generated class is added to javassist ClassPool
    if not already there, to make sure we have full visibility into supertype hierarchy
    of class

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Change-Id: I760b6d53df2e07a9ed5e73fecd655999061cc3be

10 years agoMerge "Controller ignores switch, if no ports are present"
Giovanni Meo [Tue, 10 Dec 2013 12:51:18 +0000 (12:51 +0000)]
Merge "Controller ignores switch, if no ports are present"

10 years agoMerge "Fixing a recent breakage in Flow programmer introduced by https://git.opendayl...
Giovanni Meo [Tue, 10 Dec 2013 12:48:51 +0000 (12:48 +0000)]
Merge "Fixing a recent breakage in Flow programmer introduced by https://git.opendaylight.org/gerrit/#/c/3493/"

10 years agoFixing a recent breakage in Flow programmer introduced by https://git.opendaylight... 03/3603/1
Madhu Venugopal [Tue, 10 Dec 2013 11:57:39 +0000 (03:57 -0800)]
Fixing a recent breakage in Flow programmer introduced by https://git.opendaylight.org/gerrit/#/c/3493/

Change-Id: Ib93dc934ac1af7072bfd8db1a3bd51e01fcd8d73
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
10 years agoUser manager to hash with SHA-384 82/3482/5
Alessandro Boch [Thu, 5 Dec 2013 06:49:45 +0000 (22:49 -0800)]
User manager to hash with SHA-384

- When strong password check is enabled, hash the
  users password with SHA-384 instead of SHA-1.
  (Password salting will be considered in future)
- Other minor changes: organize parameters, remove
  printStackTrace()

Change-Id: I7675db48a3685c546ec544ff3cf38ab53e9f6cde
Signed-off-by: Alessandro Boch <aboch@cisco.com>