Skip to content

Instantly share code, notes, and snippets.

View mavenugo's full-sized avatar

Madhu Venugopal mavenugo

  • Apple
  • Cupertino, CA
View GitHub Profile
madhu@Madhus-MacBook-Pro plugins (master) $ ls -la
total 95840
drwxr-xr-x 271 madhu staff 9214 Feb 24 00:53 .
drwxr-xr-x 15 madhu staff 510 Feb 24 00:54 ..
-rw-r--r-- 1 madhu staff 35058 Feb 23 04:53 com.fasterxml.jackson.core.jackson-annotations-2.3.0.jar
-rw-r--r-- 1 madhu staff 197981 Feb 23 04:53 com.fasterxml.jackson.core.jackson-core-2.3.0.jar
-rw-r--r-- 1 madhu staff 914028 Feb 23 04:53 com.fasterxml.jackson.core.jackson-databind-2.3.0.jar
-rw-r--r-- 1 madhu staff 24412 Feb 23 04:53 com.fasterxml.jackson.jaxrs.jackson-jaxrs-base-2.3.0.jar
-rw-r--r-- 1 madhu staff 15313 Feb 23 04:53 com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider-2.3.0.jar
-rw-r--r-- 1 madhu staff 27604 Feb 23 04:53 com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.3.0.jar
1. Create a Flavor (internally create a DHCP value)
2. Create a Policy with Application properties
3. Associate Policy with Flavor
4. Choose Flavor for a Tenant
-> Run through all the learnt Hosts and create {SIP, DIP, DHCP) policies (only when SIP & DIP are not in the same Node).
Use-case 1
=========
Flavor : Lowest Latency (DHCP 50)
{
"policyConfig": {
"installInHw": "true",
"name": "F1_Bronze_192.168.57.101_192.168.56.101",
"nwSrc": "192.168.57.101",
"nwDst": "192.168.56.101",
"protocol": "1",
"propertyName": "Number",
"propertyPolicyName": "Hop Count based Shortest Path"
{
"policyConfigWithStatus": [
{
"policyConfig": {
"installInHw": "true",
"name": "F1_Bronze_192.168.57.101_192.168.56.101",
"nwSrc": "192.168.57.101",
"nwDst": "192.168.56.101",
"dscp": "8",
"propertyName": "Number",
{
"flow-node-inventory:table": [
{
"flow-node-inventory:flow": [
{
"flow-node-inventory:cookie": 0,
"flow-node-inventory:hard-timeout": 0,
"flow-node-inventory:id": "99b7915a-5616-4763-a9b4-e0efcc1d1b5a",
"flow-node-inventory:idle-timeout": 0,
"flow-node-inventory:instructions": {
{"policyConfigWithStatus":[{"policyConfig":{"installInHw":"true","name":"F1_Bronze_192.168.57.101_192.168.56.101","nwSrc":"192.168.57.101","nwDst":"192.168.56.101","dscp":"8","propertyName":"Number","propertyPolicyName":"Hop Count based Shortest Path","path":[{"tailNodeConnector":{"node":{"id":"openflow:3","type":"MD_SAL"},"id":"openflow:3:1","type":"MD_SAL"},"headNodeConnector":{"node":{"id":"openflow:6","type":"MD_SAL"},"id":"openflow:6:1","type":"MD_SAL"}},{"tailNodeConnector":{"node":{"id":"openflow:6","type":"MD_SAL"},"id":"openflow:6:3","type":"MD_SAL"},"headNodeConnector":{"node":{"id":"openflow:1","type":"MD_SAL"},"id":"openflow:1:3","type":"MD_SAL"}}]},"policyPathStatus":"INSTALLED"},{"policyConfig":{"installInHw":"true","name":"F2_Silver_192.168.57.101_192.168.56.101","nwSrc":"192.168.57.101","nwDst":"192.168.56.101","dscp":"12","propertyName":"Number","propertyPolicyName":"Weighted Least Cost Path","path":[{"tailNodeConnector":{"node":{"id":"openflow:3","type":"MD_SAL"},"id":"openflow:3:2","type":"
{
"policyConfigWithStatus": [
{
"policyConfig": {
"installInHw": "true",
"name": "F1_Bronze_192.168.57.101_192.168.56.101",
"nwSrc": "192.168.57.101",
"nwDst": "192.168.56.101",
"dscp": "8",
"propertyName": "Number",
{
"policyConfigWithStatus": [
{
"policyConfig": {
"installInHw": "true",
"name": "F1_Bronze_192.168.57.101_192.168.56.101",
"nwSrc": "192.168.57.101",
"nwDst": "192.168.56.101",
"dscp": "8",
"propertyName": "Number",
/**
* Copyright (C) 2013 Red Hat, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Authors : Madhu Venugopal, Brent Salisbury
*/
package org.opendaylight.ovsdb.neutron.provider;
[fedora@fedora4 devstack]$ sudo tcpdump -i tapabc617ee-43 -e
tcpdump: WARNING: tapabc617ee-43: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tapabc617ee-43, link-type EN10MB (Ethernet), capture size 65535 bytes
07:34:36.861192 fa:16:3e:46:24:8c (oui Unknown) > Broadcast, ethertype ARP (0x0806), length 42: Request who-has 10.210.1.3 tell 10.210.1.2, length 28
07:34:36.861926 fa:16:3e:2b:6f:f0 (oui Unknown) > fa:16:3e:46:24:8c (oui Unknown), ethertype ARP (0x0806), length 42: Reply 10.210.1.3 is-at fa:16:3e:2b:6f:f0 (oui Unknown), length 28
5 packets captured
5 packets received by filter
0 packets dropped by kernel