Skip to content

Instantly share code, notes, and snippets.

@trozet
trozet / Dockerfile
Created November 6, 2018 19:09
opendaylight dockerfile example
FROM 192.0.2.1:8787/tripleorocky/centos-binary-opendaylight:current-tripleo-rdo
RUN yum remove opendaylight -y
RUN echo $'[opendaylight]\n\
baseurl=https://nexus.opendaylight.org/content/repositories/opendaylight-oxygen-epel-7-x86_64-devel/\n\
gpgcheck=0\n\
enabled=1' > /etc/yum.repos.d/opendaylight.repo
RUN yum -y install opendaylight
@trozet
trozet / ooo_deploy_odl_container_manually.sh
Last active September 18, 2018 21:05
ooo_deploy_odl_container_manually
docker run --network="host" -e "KOLLA_CONFIG_STRATEGY=COPY_ALWAYS" \
-v /etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro \
-v /var/lib/kolla/config_files/opendaylight_api.json:/var/lib/kolla/config_files/config.json:ro \
-v /var/lib/config-data/puppet-generated/opendaylight/:/var/lib/kolla/config_files/src:ro \
-v /etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro \
-v /etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro \
-v /etc/hosts:/etc/hosts:ro \
-v /dev/log:/dev/log \
@djoreilly
djoreilly / multicast-openstack.md
Last active December 29, 2023 07:06
Multicast on OpenStack

Multicast on OpenStack

The following works with Neutron VLAN provider networks, and requires configuration on the physical switches. Multicast works on br-int because the ML2 OVS driver/agent uses OVS in standalone mode (no external controller). The packets on br-int hit the NORMAL flow action, and so get treated by the ovs-vswitchd code that does IGMP snooping (when enabled). All IGMP packets are sent to the slow path (userspace ovs-vswitchd).

The following will not work on Neutron tunnel backed networks (VxLAN, GRE), as the neutron-openvswitch-agent hardcodes flows on br-tun that treats multicast the same as broadcasts and the NORMAL action is not used.

+----------------------------+      +----------------------------+
|      +----+    +----+      |      |      +----+    +----+      |
|      | VM |    | VM |      |      |      | VM |    | VM |      |
|      +-+--+    +--+-+      |      |      +-+--+    +--+-+      |
@trozet
trozet / setup_openstack.sh
Last active December 8, 2017 16:48
sets up openstack post install
#!/bin/env bash
. overcloudrc
##if you need to create external net##
openstack network create external --project service --external --provider-network-type flat --provider-physical-network datacentre
openstack subnet create external-subnet --project service --network external --no-dhcp --gateway 192.168.37.1 --allocation-pool start=192.168.37.200,end=192.168.37.220 --subnet-range 192.168.37.0/24
##
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
openstack image create cirros --public --file ./cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare
openstack flavor create m1.tiny --ram 64 --disk 1 --public