Daniel Farrell
Software Engineer, Red Hat SDN Team
[~]$ sudo curl -o /etc/yum.repos.d/opendaylight-8-devel.repo \
<URL to repo config>
[~]$ sudo yum install -y opendaylight
<snip>
Installed:
opendaylight.noarch 0:opendaylight-8.1.0-0.1.20180326snap57.el7
Complete!
[~]$ sudo systemctl start opendaylight
[~]$ sudo systemctl is-active opendaylight
active
$ ssh -p 8101 karaf@localhost
opendaylight-user@root>feature:install ...
class opendaylight::params {
$default_features = ['config', 'standard', 'region', 'package', 'kar', 'ssh', 'management']
$extra_features = []
$odl_rest_port = '8080'
$odl_bind_ip = '0.0.0.0'
$rpm_repo = 'opendaylight-6-testing'
$deb_repo = 'ppa:odl-team/boron'
$log_levels = {}
$enable_ha = false
$ha_node_ips = []
$ha_node_index = 0
$security_group_mode = 'stateful'
$vpp_routing_node = ''
$java_opts = '-Djava.net.preferIPv4Stack=true'
$manage_repositories = true
$username = 'admin'
$password = 'admin'
}
desc "Run syntax, lint, and spec tests."
task :test => [
:syntax,
:lint,
:metadata_lint,
:spec,
]
Executing section git...
Executing section spacing...
Executing section markdown...
Executing section rest...
Executing section yaml...
Executing section json...
Executing section xml...
$ docker run -ti opendaylight/odl /opt/opendaylight/bin/karaf
$ docker ps
CONTACONTAINER ID IMAGE COMMAND
b2869594fab3 opendaylight/odl:latest "/opt/opendaylight/bin/karaf"
[~/sandbox]$ vagrant init -m opendaylight/odl
[~/sandbox]$ cat Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "opendaylight/odl"
end
[~/sandbox]$ vagrant up
default: URL: https://atlas.hashicorp.com/opendaylight/odl
==> default: Adding box 'opendaylight/odl' (v6.0.0)
[~/sandbox]$ vagrant status
Current machine states:
default running (libvirt)
[~/sandbox]$ vagrant ssh
[vagrant@localhost ~]$ sudo systemctl is-active opendaylight
active
By Daniel Farrell
Talk given at ONS North America 2018