from reservation.stack import OSKeystone
from reservation.stack import OSNeutron

osKSAuth = OSKeystone.OSAuth(filename="configs/config.json")
session = osKSAuth.createKeyStoneSession()

osProject = OSKeystone.OSProject(session=session)
project = osProject.find(name="test_project")
osNetwork = OSNeutron.OSNetwork(session=session)
net = osNetwork.find(name="test")
osSubnet = OSNeutron.OSSubnet(session=session)

osSubnet.create(name="test_subnet1", network_id=net[0]["id"], cidr="10.0.1.0/24", gateway_ip="10.0.1.1", project_id=project.id)
