forked from mirrors/thatmattlove-hyperglass
CentOS 7 has Python 3.6 in the official repositories since some time. This allows us to get an almost modern Python interpreter onto the system without fiddling with PATH environment varible like SCL does.
81 lines
1.7 KiB
Text
81 lines
1.7 KiB
Text
---
|
|
id: installation
|
|
title: Linux Agent Installation
|
|
sidebar_label: Installation
|
|
keywords: [configuration, linux, frr, frrouting, bird, agent]
|
|
description: Install hyperglass-agent on your system
|
|
---
|
|
|
|
import Tabs from "@theme/Tabs";
|
|
import TabItem from "@theme/TabItem";
|
|
|
|
:::important In Progress
|
|
Documentation for [hyperglass-agent](https://github.com/checktheroads/hyperglass-agent) is in progress!
|
|
:::
|
|
|
|
## Installation
|
|
|
|
### Dependencies
|
|
|
|
On the Linux server running [FRRouting](https://frrouting.org/) or [BIRD](https://bird.network.cz/), make sure Python 3.6+ is installed:
|
|
|
|
<Tabs
|
|
defaultValue="debian"
|
|
values={[
|
|
{ label: 'Ubuntu', value: 'ubuntu' },
|
|
{ label: 'Debian', value: 'debian' },
|
|
{ label: 'RHEL/CentOS', value: 'rhel' }]}>
|
|
|
|
<TabItem value="ubuntu">
|
|
|
|
```shell-session
|
|
$ sudo apt install -y python3.6-dev python3-pip
|
|
```
|
|
|
|
</TabItem>
|
|
|
|
<TabItem value="debian">
|
|
|
|
```shell-session
|
|
$ sudo apt install -y python3 python3-pip libssl-dev
|
|
```
|
|
|
|
</TabItem>
|
|
|
|
<TabItem value="rhel">
|
|
|
|
You can install python from the CentOS 7 repository:
|
|
|
|
```shell-session
|
|
$ sudo yum install python3-devel python3-pip
|
|
```
|
|
|
|
But you can also use the [SCL repository](https://www.softwarecollections.org/en/scls/rhscl/rh-python36/)
|
|
|
|
```shell-session
|
|
$ sudo yum install centos-release-scl
|
|
$ sudo yum install rh-python36
|
|
```
|
|
|
|
</TabItem>
|
|
|
|
</Tabs>
|
|
|
|
You can then verify your Python 3 version:
|
|
|
|
```shell-session
|
|
$ python3 --version
|
|
Python 3.6.9
|
|
```
|
|
|
|
### Application
|
|
|
|
Now that Python 3.6+ is installed, you can install the hyperglass agent:
|
|
|
|
```shell-session
|
|
$ pip3 install hyperglass-agent
|
|
```
|
|
|
|
:::important More coming soon
|
|
Documentation for [hyperglass-agent](https://github.com/checktheroads/hyperglass-agent) is in progress!
|
|
:::
|