Skip to content

Instantly share code, notes, and snippets.

./karaf debug -Djavax.net.debug=ssl,handshake
feature:install odl-openflowplugin-flow-services-li
# My OVS config:
sudo ovs-vsctl show
c1174f51-ea43-4a48-865c-679d4327b2be
Bridge "br0"
Controller "ssl:10.0.1.6:6633"
Port "br0"
Interface "br0"
<!-- default OF-switch-connection-provider (port 6633) -->
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">prefix:openflow-switch-connection-provider-impl</type>
<name>openflow-switch-connection-provider-default-impl</name>
<port>6633</port>
<switch-idle-timeout>15000</switch-idle-timeout>
<transport-protocol>TLS</transport-protocol>
<tls>
<keystore>configuration/ssl/ctl.jks</keystore>
<keystore-type>JKS</keystore-type>
@icarocamelo
icarocamelo / ovs-vswitchd-after-openssl-update.log
Created August 20, 2015 19:22
/var/log/openvswitch/ovs-vswitchd.log (after openssl update)
2015-08-20T19:17:19Z|00594|stream_ssl|ERR|Private key must be configured to use SSL
2015-08-20T19:17:19Z|00595|stream_ssl|ERR|Certificate must be configured to use SSL
2015-08-20T19:17:19Z|00596|stream_ssl|ERR|CA certificate must be configured to use SSL
2015-08-20T19:17:19Z|00597|rconn|WARN|s1<->ssl:10.0.1.6:6653: connection failed (Protocol not available)
2015-08-20T19:17:27Z|00598|stream_ssl|ERR|Private key must be configured to use SSL
2015-08-20T19:17:27Z|00599|stream_ssl|ERR|Certificate must be configured to use SSL
2015-08-20T19:17:27Z|00600|stream_ssl|ERR|CA certificate must be configured to use SSL
2015-08-20T19:17:27Z|00601|rconn|WARN|s1<->ssl:10.0.1.6:6653: connection failed (Protocol not available)
2015-08-20T19:17:31Z|00602|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device s3-eth2 failed: No such device
2015-08-20T19:17:31Z|00603|dpif|WARN|Dropped 14 log messages in last 259 seconds (most recently, 259 seconds ago) due to excessive rate
@icarocamelo
icarocamelo / sudo ovs-vsctl list ssl
Created August 20, 2015 13:55
sudo ovs-vsctl list ssl
mininet@mininet-vm:~$ sudo ovs-vsctl list ssl
_uuid : b8449e22-40a1-49ae-87fa-d25c04683426
bootstrap_ca_cert : false
ca_cert : "/var/lib/openvswitch/pki/controllerca/cacert.pem"
certificate : "/etc/openvswitch/sc-cert.pem"
external_ids : {}
private_key : "/etc/openvswitch/sc-privkey.pem"
@icarocamelo
icarocamelo / ovs-vswitchd.log
Last active August 29, 2015 14:27
/var/log/openvswitch/ovs-vswitchd.log
2015-08-20T14:14:35Z|00473|bridge|INFO|bridge s1: added interface s1 on port 65534
2015-08-20T14:14:35Z|00474|bridge|INFO|bridge s1: using datapath ID 0000c22decc72b46
2015-08-20T14:14:35Z|00475|connmgr|INFO|s1: added service controller "punix:/var/run/openvswitch/s1.mgmt"
2015-08-20T14:14:35Z|00476|bridge|INFO|bridge s1: using datapath ID 0000000000000001
2015-08-20T14:14:35Z|00477|bridge|INFO|bridge s1: added interface s1-eth1 on port 1
2015-08-20T14:14:35Z|00478|bridge|INFO|bridge s1: added interface s1-eth2 on port 2
2015-08-20T14:14:35Z|00479|connmgr|INFO|s1: added primary controller "tcp:10.0.1.6:6653"
2015-08-20T14:14:35Z|00480|rconn|INFO|s1<->tcp:10.0.1.6:6653: connecting...
2015-08-20T14:14:35Z|00481|rconn|INFO|s1<->tcp:10.0.1.6:6653: connected
2015-08-20T14:14:35Z|00482|connmgr|INFO|s1<->tcp:10.0.1.6:6653: sending OFPBRC_BAD_TYPE error reply to OFPT_HELLO message
mininet@mininet-vm:~$ sudo ovs-vsctl list controller
_uuid : 39a115f0-4632-4102-8168-8686d00d3e5c
connection_mode : []
controller_burst_limit: []
controller_rate_limit: []
enable_async_messages: []
external_ids : {}
inactivity_probe : []
is_connected : false
local_gateway : []
#!/usr/bin/python
from mininet.net import Mininet
from mininet.node import Controller, RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel, info
def emptyNet():
net = Mininet(controller=None)
net.addController( 'c0', controller=RemoteController, ip='10.0.1.6', port=6653 )
h1 = net.addHost( 'h1' )
<nodes xmlns="urn:opendaylight:inventory">
<node>
<id>openflow:1</id>
<table xmlns="urn:opendaylight:flow:inventory">
<id>0</id>
</table>
<switch-features xmlns="urn:opendaylight:flow:inventory">
<max_tables>254</max_tables>
<max_buffers>256</max_buffers>
<capabilities>flow-feature-capability-table-stats</capabilities>
@icarocamelo
icarocamelo / sudo ovs-vsctl show
Created August 20, 2015 13:18
sudo ovs-vsctl show
mininet@mininet-vm:~$ sudo ovs-vsctl show
987c42d0-eab0-43d9-a32b-4246973706c2
Manager "ssl:10.0.1.6:6640"
Bridge "br1"
Port "br1"
Interface "br1"
type: internal
Bridge "s1"
Controller "ssl:10.0.1.6:6653"
fail_mode: secure
#!/usr/bin/python
from mininet.net import Mininet
from mininet.node import Controller, RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel, info
def emptyNet():
net = Mininet( controller=RemoteController )
net.addController( 'c0' )
h1 = net.addHost( 'h1' )