neutron-bgp-dragent command not found

In this troubleshooting guide we learn how to fix neutron-bgp-dragent command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

neutron-bgp-dragent: command not found

or when using sudo you get the following error message

sudo: neutron-bgp-dragent: command not found

Solutions to neutron-bgp-dragent: command not found

How To Fix neutron-bgp-dragent: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu neutron-bgp-dragent is provided by python3-neutron-dynamic-routing package.

python3-neutron-dynamic-routing is:

Neutron provides an API to dynamically request and configure virtual networks. These networks connect “interfaces” from other OpenStack services (such as vNICs from Nova VMs). The Neutron API supports extensions to provide advanced network capabilities, including QoS, ACLs, and network monitoring.

Neutron dynamic routing enables advertisement of self-service (private) network prefixes to physical network devices that support dynamic routing protocols such as routers, thus removing the conventional dependency on static routes.

It advertises three classes of routes:

  • Host routes for floating IP addresses hosted on non-DVR routers, the nexthop is the centralized router.
  • Host routes for floating IP addresses hosted on DVR routers, the nexthop is the appropriate compute node.
  • Prefix routes for directly routable tenant networks with address scopes, the nexthop is the centralized router, the same for DVR and CVR.

Neutron dynamic routing consists of service plug-in and agent. The service plug-in implements the Networking service extension and the agent manages dynamic routing protocol peering sessions. The plug-in communicates with the agent through RPC.

This package provides the Python 3 library.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-neutron-dynamic-routing

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-neutron-dynamic-routing.

sudo apt -y install python3-neutron-dynamic-routing

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-neutron-dynamic-routing

Summary

In this tutorial we learn how to fix neutron-bgp-dragent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.