Date: 2018-06-05 9:00
- Would like to start with OPNFV use cases
- Testing
- Multiple labs located globally that can be used for test resources
- OPNFV can help give us hardware to test on
#!/usr/bin/env python3 | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
'filename', | |
help=('User survey results as a file with each line being a list of ' | |
'responses per user.') | |
) |
from oslo_limit import limit | |
def create_server(self, context, server): | |
claim_quantity = server.get('cores') | |
claim = limit.ProjectClaim('cores', context.project_id, quantity=claim_quantity) | |
# Verification after executing the claim is the default behavior, but calling it out | |
# explicitly here for the sake of the example. | |
with limit.Enforcer(claim, callback=self.calculate_cores_for_project, verify=True) as enforcer: |
# Decide a Range of IP Address Your Router Will Manage, and a Range of IP Address Neutron Will Manage | |
# Adjust To Accomodate For Any Static Assignments (Such as 192.168.1.1 for Your Router) | |
# Ensure These IP Address Ranges, and Any Static Assignments Do Not Overlap | |
# | |
# For Example: | |
# | |
# Home Network Subnet: 192.168.1.0/24 | |
# Router Static: 192.168.1.1 | |
# Laptop Static: 192.168.1.2 | |
# OSA-AIO Static: 192.168.1.3 |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
auto eth0 |
from oslo_limit import limit | |
LIMIT_ENFORCER = limit.Enforcer() | |
def create_foobar(self, context, foobar): | |
# check if project is over the limit prior to creating the resource | |
claim = 1 | |
resource_name = 'foobars' |
The contents of this gist have been moved to my bookshelf.
source /etc/network/interfaces.d/* | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet manual | |
auto eth1 | |
iface eth1 inet manual |
[report] | |
projects = keystone keystoneauth keystonemiddleware python-keystoneclient | |
start_date = 'March 27, 2018 12:00 AM CST' | |
end_date = 'April 27, 2018 12:00 AM CST' |