You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,19 @@ Executed in Docker containers running Ubuntu 16.04 integrated with GNS3.
7
7
8
8
## Installing and running
9
9
10
+
A [Dockerfile](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/main/Dockerfile) is included in this repository, with the required packages to run the program.
11
+
10
12
Before running the program, a configuration file `ospfd.conf` must be created or placed inside the /etc directory of the machine or Docker container running the program. A sample [configuration file](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/main/ospfd.conf) is included in this repository.
11
13
12
-
It is necessary to provide the absolute path to the /python directory of the source code in the line 98 of the [ospfd_linux.C](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/cb2ebdbeb76b8e787ac0cff179b629237d9ff22d/linux/ospfd_linux.C#L98) file. Currently, it is assumed that the path is /ospf/python.
14
+
It is necessary to provide the absolute path to the /python directory of the source code in the line 98 of the [ospfd_linux.C](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/ac0582e3da201882b8fdfb3ce622a1275f095330/linux/ospfd_linux.C#L98) file. Currently, it is assumed that the path is /ospf/python.
13
15
14
16
After copying the content of this repository to the machine, it is necessary to open a terminal and go to the /linux directory of the source code. The program is compiled by running `make install`, and then executed by running `ospfd`. The command `ospfd` can be executed anywhere, and must be run as `root`.
15
17
16
18
**Note**: When running Docker containers inside GNS3 networks, an /etc directory can be seen inside the directories for each container, inside the respective GNS3 network directory in the host machine. This /etc directory is different from the Ubuntu /etc directory, and is inaccessible from inside the container.
17
19
18
20
## Python code
19
21
20
-
Two Python modules have been created along with C++ code interacting with them, producing some output. The Python code is stored in the /python directory of this repository, while the C++ code interacting with Python is stored in the file [ospfd_linux.C](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/cb2ebdbeb76b8e787ac0cff179b629237d9ff22d/linux/ospfd_linux.C#L93). The [Makefile](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/main/linux/Makefile) was also updated with Python-specific flags.
22
+
Two Python modules have been created along with C++ code interacting with them, producing some output. The Python code is stored in the /python directory of this repository, while the C++ code interacting with Python is stored in the file [ospfd_linux.C](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/ac0582e3da201882b8fdfb3ce622a1275f095330/linux/ospfd_linux.C#L93). The [Makefile](https://github.com/migueldgoncalves/ospf_cplusplus_python_integration/blob/main/linux/Makefile) was also updated with Python-specific flags.
21
23
22
24
The experiments involve calling Python functions with different types of arguments and returns, and manipulating Python
0 commit comments