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 |
---|
2 | import xmlrpclib |
---|
3 | |
---|
4 | ip_server = '10.0.0.236' |
---|
5 | c = xmlrpclib.ServerProxy("https://"+ip_server+":9779") |
---|
6 | #c = xmlrpclib.ServerProxy("https://192.168.1.2:9779") |
---|
7 | user = ("lliurex","lliurex") |
---|
8 | |
---|
9 | print 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 | |
---|
17 | print c.configure_service(user,'Dnsmasq','aula1') |
---|
18 | print c.set_dns_external(user,'Dnsmasq','172.25.111.4') |
---|
Note: See
TracBrowser
for help on using the repository browser.