Skip to content

Instantly share code, notes, and snippets.

# Copyright (c) 2012 OpenStack Foundation.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
mysql> select * from ml2_port_bindings where port_id='06cc9409-fb74-44cb-8270-890aa4c1d86a';
+--------------------------------------+------+----------+-----------+---------+-------------+
| port_id | host | vif_type | vnic_type | profile | vif_details |
+--------------------------------------+------+----------+-----------+---------+-------------+
| 06cc9409-fb74-44cb-8270-890aa4c1d86a | | unbound | normal | | |
+--------------------------------------+------+----------+-----------+---------+-------------+
{'_networks': {'192.168.140.0/24': ['compute02', 'compute01'], '192.168.100.0/24': ['compute02', 'compute01']}, '_clients': {'compute02': '192.168.100.118', 'compute01': '192.168.100.117'}, '_host_detail': {'compute02': {'192.168.140.0/24': {'ips': ['192.168.140.118'], 'results': {'192.168.140.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.118'], 'results': {'192.168.100.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}}, 'compute01': {'192.168.140.0/24': {'ips': ['192.168.140.117'], 'results': {'192.168.140.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.117'], 'results': {'192.168.100.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}}}}
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
IDENTIFIED BY 'password';
CREATE DATABASE glance;
External
========
#!/bin/bash
curl --data "username=%dme_username%&password=%dme_pw%&id=%dme_id%&ip=%external_ip%" https://cp.dnsmadeeasy.com/servlet/updateip
Internal
========
#!/bin/bash
Docker Server
=============
#!/bin/bash
sudo apt-get update
sudo apt-get install curl -y
curl -sSL https://get.docker.com/gpg | sudo apt-key add -
curl -sSL https://get.docker.com/ | sh
cfg.StrOpt('api_extensions_path', default="<EDIT>",
help=_("The path for API extensions. "
"Note that this can be a colon-separated list of paths. "
"The __path__ of neutron.extensions is appended to "
"this, so if your extensions are in there you don't "
"need to specify them here."),
sample_default='extensions:/path/to/more/exts:/even/more/exts',
required=True),
# The path for API extensions. Note that this can be colon-separated list
def test_delete_network_exception(self):
tenants = self.tenants.list()
network = self.networks.first()
api.neutron.list_dhcp_agent_hosting_networks(IsA(http.HttpRequest),
network.id).\
AndReturn(self.agents.list())
api.neutron.network_ip_availability_show(IsA(http.HttpRequest),
network.id).\
AndReturn(self.agents.list())
# Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@stajkowski
stajkowski / gist:abb1669d93dc21cafb17
Created March 11, 2016 04:13
openstack_dashboard.dashboards.admin.networks.tests.py
# Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT