source: n4d-dnsmasq/trunk/fuentes/example_init.py @ 196

Last change on this file since 196 was 196, checked in by hectorgh, 5 years ago

adding files

  • Property svn:executable set to *
File size: 480 bytes
Line 
1#!/usr/bin/python
2import xmlrpclib
3
4ip_server = '10.0.0.236'
5c = xmlrpclib.ServerProxy("https://"+ip_server+":9779")
6#c = xmlrpclib.ServerProxy("https://192.168.1.2:9779")
7user = ("lliurex","lliurex")
8
9print c.get_methods('Dnsmasq')
10
11#se necesita inicializar previamente las siguientes variables del n4d-network
12#SRV_IP
13#INTERNAL_NETWORK
14#INTERNAL_MASK
15#INTERNAL_INTERFACE
16
17print c.configure_service(user,'Dnsmasq','aula1')
18print c.set_dns_external(user,'Dnsmasq','172.25.111.4')
Note: See TracBrowser for help on using the repository browser.