def add_lease(mac, ip_address):
 api = network_rpcapi.NetworkAPI()
 api.lease_fixed_ip(context.get_admin_context(), ip_address, CONF.host)

def add_lease ( mac , ip_address ) : api = network_rpcapi . NetworkAPI ( ) api . lease_fixed_ip ( context . get_admin_context ( ) , ip_address , CONF . host )
set the ip that was assigned by the dhcp server .