1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

guess_mac_address reads /srv/webvirtcloud/dhcpd.conf

This commit is contained in:
Jan Krcmar 2016-02-11 12:56:36 +01:00
parent 96982ce58b
commit a1d5edebe2

View file

@ -669,7 +669,7 @@ def inst_graph(request, compute_id, vname):
@login_required
def guess_mac_address(request, vname):
dhcp_file = '/srv/webvirtcloud/dhcpd.hype.ipv4.conf'
dhcp_file = '/srv/webvirtcloud/dhcpd.conf'
data = { 'vname': vname, 'mac': '52:54:00:' }
with open(dhcp_file, 'r') as f:
name_found = False