You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2018/07/20 14:59:05 UTC

[4/4] qpid-dispatch git commit: DISPATCH-993: Use different non-default cost for each connector

DISPATCH-993: Use different non-default cost for each connector

Reading the log files is easier when each inter-router link can
be identified easily.

* If default values for connector costs are used then
the Open frames do not contain the qd.inter-router-cost
property. By specifying non-defaults each Open has a property
field that identifies the peer router.

* When each link uses a different cost it's obvious which link
is being set up.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/2d6bef53
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/2d6bef53
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/2d6bef53

Branch: refs/heads/master
Commit: 2d6bef53ac984e4cd5fe0afb0eeb7495f93a991d
Parents: 75d9c17
Author: Chuck Rolke <cr...@redhat.com>
Authored: Fri Jul 20 10:51:06 2018 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Fri Jul 20 10:56:25 2018 -0400

----------------------------------------------------------------------
 tests/system_tests_topology_disposition.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/2d6bef53/tests/system_tests_topology_disposition.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_topology_disposition.py b/tests/system_tests_topology_disposition.py
index 9aa7276..e1e1328 100644
--- a/tests/system_tests_topology_disposition.py
+++ b/tests/system_tests_topology_disposition.py
@@ -180,25 +180,25 @@ class TopologyDispositionTests ( TestCase ):
         #  Tail of arrow indicates initiator of connection.
         #  (The diagonal connections do not look very much like arrows, I fear...)
         #
-        #                1
+        #                2
         #         D ----------> A
         #         | \         > ^
         #         | 20\   50/   |
         #         |     \ /     |
-        #      1  |     / \     | 100
+        #      3  |     / \     | 100
         #         |   /     \   |
         #         v /         > |
         #         C ----------> B
-        #                1
+        #                4
         #
 
         cls.cost = dict()
         cls.cost [ 'AB' ] = 100
         cls.cost [ 'AC' ] =  50
-        cls.cost [ 'AD' ] =   1
-        cls.cost [ 'BC' ] =   1
+        cls.cost [ 'AD' ] =   2
+        cls.cost [ 'BC' ] =   4
         cls.cost [ 'BD' ] =  20
-        cls.cost [ 'CD' ] =   1
+        cls.cost [ 'CD' ] =   3
 
         # Add an extra, high-cost connection between A and D.
         # This will be deleted in the first test. Note that


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org