This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This scripts creates a MAAS DHCP lease, forces to write that dhcp lease on the | |
filesystem , and forces to write the dns zone reflecting the new lease. | |
Usage: | |
./{0} ip_addr mac_addr | |
""" | |
from maasserver.dns import change_dns_zones, write_full_dns_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import yaml | |
import subprocess | |
import argparse | |
__author__ = "Jorge Niedbalski <[email protected]>" |
NewerOlder