diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-06-25 16:38:29 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2015-10-29 05:08:15 +0100 |
| commit | 24ae662eaee03a0e5d1046acf6882bc6842f518a (patch) | |
| tree | c02eded4c2cb03d573fc1ebdf078f868c5d809cc /python | |
| parent | eec0d119ac755b72f8e881728608a849ad12b66b (diff) | |
| download | samba-24ae662eaee03a0e5d1046acf6882bc6842f518a.tar.gz samba-24ae662eaee03a0e5d1046acf6882bc6842f518a.tar.bz2 samba-24ae662eaee03a0e5d1046acf6882bc6842f518a.zip | |
KCC: stop --forget-intersite-links forgetting local links
It will still forget intrasite links on other sites, but that in theory
should not matter.
It will still break your network, and is only useful for debugging.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/kcc/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/samba/kcc/__init__.py b/python/samba/kcc/__init__.py index 039d54a5f60..9e69b391407 100644 --- a/python/samba/kcc/__init__.py +++ b/python/samba/kcc/__init__.py @@ -2507,7 +2507,9 @@ class KCC(object): for dsa in self.my_site.dsa_table.values(): dsa.connect_table = dict((k, v) for k, v in dsa.connect_table.items() - if v.is_rodc_topology()) + if v.is_rodc_topology() or + (v.from_dnstr not in + self.my_site.dsa_table)) self.plot_all_connections('dsa_forgotten_local') if forget_intersite_links: |
