FreeNAS/freenas ae34d75src/middlewared/middlewared/alert/source active_directory.py ldap.py, src/middlewared/middlewared/plugins nis.py activedirectory.py

Ensure that triggered alerts also update DS state

Also make the various "set_state" functions naming consistent.
I also noticed that I needed to update the return values for
'nis.started'. The various <ds>.started functions should
return True if it's healthy, False if it's disabled, and raise
an exception if it's enabled and not healthy.

ypwhich has some strange and not very helpful failure modes. It
may return 1 indicating failure, or it may fail and return 0. Checking
for stderr is probably less problematic. If it returns 1, there is
also output on stderr so we can reduce the checks here.
DeltaFile
+6-12src/middlewared/middlewared/plugins/nis.py
+8-8src/middlewared/middlewared/plugins/activedirectory.py
+4-4src/middlewared/middlewared/plugins/ldap.py
+3-0src/middlewared/middlewared/alert/source/active_directory.py
+2-0src/middlewared/middlewared/alert/source/ldap.py
+2-0src/middlewared/middlewared/alert/source/nis.py
+25-246 files

UnifiedSplitRaw