Skip to content

Instantly share code, notes, and snippets.

View sridhargaddam's full-sized avatar

Sridhar Gaddam sridhargaddam

  • Red Hat
  • Bangalore
View GitHub Profile
@sridhargaddam
sridhargaddam / QBGPODL Controller
Created January 23, 2018 19:12
QBGP_ODL Controller
QBGP/ODL Controller:
-----------------------
In vtysh:
odlcluster1# show bgp evpn rd 100:100
BGP table version is 0, local router ID is 192.168.121.109
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
@sridhargaddam
sridhargaddam / EVPN Configuration
Last active January 30, 2018 12:25
EVPN Configuration
2.1: Define L3VPN instance and associate it with OpenStack admin tenant
------------------------------------------------------------------------
export ODL_URL='http://192.168.121.109:8181/restconf'
export CT_JSON="Content-Type: application/json"
TENANT_UUID=$(openstack project show admin -f value -c id | \
sed 's/\(........\)\(....\)\(....\)\(....\)\(.*\)/\1-\2-\3-\4-\5/')
cat << EOF > ./l3vpn-full.json
{
@sridhargaddam
sridhargaddam / QBGP Configuration
Created January 23, 2018 18:40
QBGP Running Configuration
odlcluster1# show running-config
Building configuration...
Current configuration:
!
hostname bgpd
log stdout
!
service advanced-vty
!
@sridhargaddam
sridhargaddam / Cumulus-VX
Last active January 23, 2018 18:39
Cumulus-VX Configuration
root@cumulus:/home/cumulus# net show configuration
interface lo
interface eth0
address dhcp
interface swp1
address dhcp
@sridhargaddam
sridhargaddam / MessagingTimedOutErrorsInCluster
Created November 30, 2017 19:42
ODL Cluster Setup and Rabbitmq issues
2017-11-30 03:47:07.268 102765 INFO neutron.agent.dhcp.agent [req-5a60b635-09c0-4ce9-a4a9-f5bf871202ab - - - - -] Synchronizing state complete
2017-11-30 03:47:40.734 102765 WARNING oslo.service.loopingcall [req-92958604-9848-482e-ba29-d91d12ae18b5 - - - - -] Function 'neutron.agent.dhcp.agent.DhcpAgentWithStateReport._report_state' run outlasted interval by 27.40 sec
2017-11-30 03:49:12.996 102765 WARNING oslo.service.loopingcall [req-8f96ddb8-4fe4-4b1d-ba7d-376cb7deb67d - - - - -] Function 'neutron.agent.dhcp.agent.DhcpAgentWithStateReport._report_state' run outlasted interval by 2.27 sec
2017-11-30 03:58:28.282 102765 WARNING oslo_messaging._drivers.amqpdriver [req-3101c4ff-f636-4a88-8f14-cb214bc58b4a - - - - -] Number of call queues is 11, greater than warning threshold: 10. There could be a leak. Increasing threshold to: 20
2017-11-30 03:58:37.271 102765 INFO neutron.agent.dhcp.agent [req-5a60b635-09c0-4ce9-a4a9-f5bf871202ab - - - - -] Synchronizing state
2017-11-30 03:58:37.550 102765 INFO neutron.agent
@sridhargaddam
sridhargaddam / agent-list
Created November 28, 2017 11:41
ODL L2 agent state flapping
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+----------------+------------------------------------+-------------------+-------+----------------+------------------------------+
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+--------------------------------------+----------------+------------------------------------+-------------------+-------+----------------+------------------------------+
| 0072d207-02fe-4c9a-a926-e8ecd3ef644e | ODL L2 | overcloud-compute-2.localdomain | | xxx | True | neutron-odlagent-portbinding |
| 01f49252-84bd-4b91-b971-ae58c502ec37 | ODL L2 | overcloud-compute-7.localdomain | | xxx | True | neutron-odlagent-portbinding |
| 03b9aea2-8a8d-410d-9edb-19090f2d174e | ODL L2 | overcloud-controller-2.
opendaylight-user@root>ipv6cacheshow --help
DESCRIPTION
ipv6service:ipv6CacheShow
Displays the IPv6Service Cache info
SYNTAX
ipv6service:ipv6CacheShow [resource]
ARGUMENTS
[[local|localrc]]
# put the log files in a dir different than the source so they can be manipulated independently
SCREEN_LOGDIR=$DEST/logs/screen
LOGFILE=$DEST/logs/stack.sh.log
LOG_COLOR=True
# flip OFFLINE and RECLONE to lock (RECLONE=no) or update the source.
#OFFLINE=True
#RECLONE=no
#FORCE=yes
[[local|localrc]]
# put the log files in a dir different than the source so they can be manipulated independently
SCREEN_LOGDIR=$DEST/logs/screen
LOGFILE=$DEST/logs/stack.sh.log
#LOGFILE=/opt/logs/stack/stack.sh.log
#SCREEN_LOGDIR=/opt/logs/stack
LOG_COLOR=True
# flip OFFLINE and RECLONE to lock (RECLONE=no) or update the source.
#OFFLINE=True
#RECLONE=no
2017-09-15 05:38:29,040 | ERROR | CommitFutures-4 | TransactionChainManager | 304 - org.opendaylight.openflowplugin.common - 0.4.2.SNAPSHOT | Transaction commit failed.
TransactionCommitFailedException{message=Data did not pass validation., errorList=[RpcError [message=Data did not pass validation., severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ModifiedNodeDoesNotExistException: Node /(urn:opendaylight:inventory?revision=2013-08-19)nodes/node/node[{(urn:opendaylight:inventory?revision=2013-08-19)id=openflow:238577208939665}]/AugmentationIdentifier{childNames=[(urn:opendaylight:flow:inventory?revision=2013-08-19)serial-number, (urn:opendaylight:flow:inventory?revision=2013-08-19)meter, (urn:opendaylight:flow:inventory?revision=2013-08-19)switch-features, (urn:opendaylight:flow:inventory?revision=2013-08-19)stale-meter, (urn:opendaylight:flow:inventory?revision=2013-08-19)supported-match-types, (