BIND 10 trac213, updated. 7d1e13b7fb6a589336cd83bef4f81fa077785beb [213] Stopping of components

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 10 17:25:16 UTC 2011


The branch, trac213 has been updated
       via  7d1e13b7fb6a589336cd83bef4f81fa077785beb (commit)
      from  49b9f8004299533dd7e54bde3820984d8b04f37b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7d1e13b7fb6a589336cd83bef4f81fa077785beb
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Oct 10 19:25:04 2011 +0200

    [213] Stopping of components

-----------------------------------------------------------------------

Summary of changes:
 src/lib/python/isc/bind10/component.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/bind10/component.py b/src/lib/python/isc/bind10/component.py
index 9de9cad..6a39e4a 100644
--- a/src/lib/python/isc/bind10/component.py
+++ b/src/lib/python/isc/bind10/component.py
@@ -219,9 +219,18 @@ class Configurator:
         Any configuration problems are expected to be handled here, so the
         plan is not yet run.
         """
-        plan_add = []
         plan = []
+        # Handle removals of old components
+        for cname in old.keys():
+            if cname not in new:
+                component = self._components[cname]
+                if component.running():
+                    plan.append({
+                        'command': 'stop',
+                        'component': component
+                    })
         # Handle introduction of new components
+        plan_add = []
         for cname in new.keys():
             if cname not in old:
                 params = new[cname]




More information about the bind10-changes mailing list