Ignore:
Timestamp:
Nov 7, 2016, 1:07:27 PM (4 years ago)
Author:
daduve
Message:

New posibility to add external router Ip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-freeradius/trunk/fuentes/install/usr/share/n4d/python-plugins/FreeRadiusManager.py

    r782 r2761  
    4141                vars["LDAP_PASSWORD"]=ldap_pwd
    4242                vars["SERVER"]=server
     43                vars["ROUTER_IP"]=router_ip
    4344               
    4445                env = Environment(loader=FileSystemLoader(self.templates_path))
     
    8485        #def
    8586       
    86         def install_conf_files(self,server,radius_secret,ldap_user,ldap_pwd):
     87        def install_conf_files(self,server,radius_secret,ldap_user,ldap_pwd,router_ip):
    8788               
    8889                try:
    8990               
    90                         clients_str,ldap_str=self.render_templates(server,radius_secret,ldap_user,ldap_pwd)
     91                        clients_str,ldap_str=self.render_templates(server,radius_secret,ldap_user,ldap_pwd,router_ip)
    9192                       
    9293                        if not os.path.exists(self.radius_path):
     
    156157       
    157158        r=RadiusManager()
    158         r.install_conf_files("server","myradius1","cn=roadmin...","2")
     159        r.install_conf_files("server","myradius1","cn=roadmin...","2","")
Note: See TracChangeset for help on using the changeset viewer.