Skip to content

Instantly share code, notes, and snippets.

Dilip dsundarraj

View GitHub Profile
View vrouter troubleshooting
5 instances of following output each 2 seconds apart,
“ifconfig –a”
Vif –b
Vrfstats —get <vrf-id> , where vrf-id is Vrf for tap-interface of interest
First page of “flow –l | more” output
dsundarraj /
Created Mar 15, 2016
HA Audit script
import os
old_contrail_vip = ''
contrail_vip = ''
analytics_api_dest_port = '9081'
contrail_api_dest_port = '9100'
old_contrail_webui_port = '8143'
new_contrail_webui_port = '9143'
conf_file = '/root/contrail.backup/contrail-analytics-api.conf'
dsundarraj / mx-config.txt
Created Mar 15, 2016
MX Configuration Steps for Floating IP
View mx-config.txt
Step 1: Enable tunnel services
for example: for an mx480 with two fpcs for redundant logical tunnels
fpc 1 {
pic 0 {
inline-services {
bandwidth 10g;
pic 1 {
dsundarraj / contrail-upgrade.txt
Created Mar 15, 2016
Contrail Upgrade with minimal downtime
View contrail-upgrade.txt
Contrail Upgrade procedure – Minimal downtime
Upgrade procedure to minimize downtime in the production network. Upgrade controller and compute separately. The procedure is based on fab upgrade_contrail.
1. Workaround for the bug ( )
Create policy to deny stop/start of services during upgrade
fab -R control -- 'echo "#! /bin/sh" > /usr/sbin/policy-rc.d'
dsundarraj / contrail-backup-restore.txt
Created Mar 15, 2016
Contrail backup and restore
View contrail-backup-restore.txt
Contrail database backup/restore procedure
This procedure can be used to backup contrail database (except the ContrailAnalytics keyspace) during upgrade from R2.20#64 to R2.22.1#5. Incase of database corruption during the upgrade process, the backed up database can be restored on the cluster. The below procedure can be used to backup/restore contrail database except the ContrailAnalytics keyspace.
1.1 Dropping ContrailAnalytics keyspace before upgrade
If the user prefers to drop the ContrailAnalytics data before upgrading the cluster, then the following can be done:
From FAB_NODE, execute “fab stop_collector”
dsundarraj / snat.txt
Created Mar 15, 2016
SNAT in Opencontrail
View snat.txt
- Assuming that you have a public network already setup
- Enable that network to be External
- neutron net-update public —router:external=True
- Create a test network
- neutron net-create test
dsundarraj / lbaas.txt
Created Mar 15, 2016
LBaaS in OpenContrail
View lbaas.txt
Check for package installation:
root@oblocknode04:/etc/contrail# dpkg -l | grep haproxy
ii haproxy 1.5.4-1ppa1~precise amd64 fast and reliable load balancing reverse proxy
root@oblocknode04:/etc/contrail# dpkg -l | grep iproute
ii iproute 1:3.12.0-2 all transitional dummy package for iproute2
ii iproute2 3.12.0-2 amd64 networking and traffic control tools
root@oblocknode04:/etc/contrail# dpkg -l | grep netns
ii python-opencontrail-vrouter-netns 2.21.2-28 amd64 OpenContrail vrouter network namespace package
You can’t perform that action at this time.