learn
  • Introduction
  • Chapter 1 经验文档
    • 智能网关
  • Chapter 2 GitHub
    • GitHub前期准备
    • GitHub实际操作
  • Chapter 3 System
    • 系统相关配置
    • Shadowsocks搭建
    • Seafile服务器
    • ITMS服务器部署安装
    • GCP防火墙和外部IP配置
  • Chapter 4 Python
    • Python学习笔记
    • Python小练习
  • Chapter 5 SDN
    • mininet
    • opendaylight
  • Chapter 6 C
    • C学习笔记
  • Chapter 7 Programming
    • LeetCode
Powered by GitBook
On this page
  • 1. Installing OpenDaylight
  • 2. Install the Karaf features
  • 3. Uninstalling features
  • 4. Listing available features

Was this helpful?

  1. Chapter 5 SDN

opendaylight


The OpenDaylight project is an open source platform for Software Defined Networking (SDN) that uses open protocols to provide centralized, programmatic control and network device monitoring.

1. Installing OpenDaylight

Download 0.4.4-Beryllium-SR4/

To run the Karaf distribution:

  1. Unzip the zip file.

  2. Navigate to the directory.

  3. run ./bin/karaf.

$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
$ tar -xvf distribution-karaf-0.6.1-Carbon.tar.gz
$ cd distribution-karaf-0.4.4-Beryllium-SR4
$ ./bin/karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]

Karaf started in 5s. Bundle stats: 64 active, 64 total

    ________                       ________                .__  .__       .__     __
    \_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_
     /   |   \\____ \_/ __ \ /    \ |    |  \\__  \<   |  ||  | |  |/ ___\|  |  \   __\
    /    |    \  |_> >  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  >   Y  \  |
    \_______  /   __/ \___  >___|  /_______  (____  / ____||____/__\___  /|___|  /__|
            \/|__|        \/     \/        \/     \/\/            /_____/      \/


Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.

opendaylight-user@root>

2. Install the Karaf features

To install a feature, use the following command, where feature1 is the feature name listed in the table below:

feature:install <feature1>

install multiple features using the following command:

feature:install <feature1> <feature2> ... <featureN-name>

3. Uninstalling features

To uninstall a feature, you must shut down OpenDaylight, delete the data directory, and start OpenDaylight up again.

Important Uninstalling a feature using the Karaf feature:uninstall command is not supported and can cause unexpected and undesirable behavior.

4. Listing available features

To find the complete list of Karaf features, run the following command:

feature:list

To list the installed Karaf features, run the following command:

feature:list -i
feature:install odl-dlux-all odl-dlux-core odl-dlux-node odl-dlux-yangui odl-dlux-yangvisualizer
feature:install odl-ovsdb-openstack
feature:install odl-l2switch-switch odl-l2switch-switch-ui odl-l2switch-switch-rest
feature:install odl-vtn-manager-neutron odl-neutron-service odl-neutron-northbound-api
PreviousmininetNextChapter 6 C

Last updated 5 years ago

Was this helpful?