Changeset 6133


Ignore:
Timestamp:
Oct 31, 2017, 1:35:50 PM (2 years ago)
Author:
hectorgh
Message:

adding is_mirror_shared function

Location:
n4d-nfs/trunk/fuentes/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • n4d-nfs/trunk/fuentes/install/etc/n4d/conf.d/NfsManager

    r6096 r6133  
    1313remove_mount_on_boot=adm,admins
    1414is_mount_configured=anonymous
     15is_mirror_shared=anonymous
    1516backup=adm,admins
    1617restore=adm,admins
  • n4d-nfs/trunk/fuentes/install/usr/share/n4d/python-plugins/NfsManager.py

    r6096 r6133  
    275275       
    276276       
     277        def is_mirror_shared(self,mirror_path,ip=None):
     278               
     279                exports=self.parse_exports_file(self.mirror_file)
     280               
     281                if mirror_path not in exports:
     282                        return {"status":False, "msg": "Shared path not found"}
     283               
     284                if ip!=None:
     285                        if ip not in exports[mirror_path]:
     286                                return {"status":False, "msg": "IP not configured in shared path"}
     287               
     288                return {"status": True, "msg": "Shared is configured"}
     289               
     290        #def is_mirror_shared
     291       
     292       
    277293        def clean_exports_file(self,f=None):
    278294               
Note: See TracChangeset for help on using the changeset viewer.