Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit b356cf8

Browse files
README link fixes
1 parent ac0582e commit b356cf8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ Executed in Docker containers running Ubuntu 16.04 integrated with GNS3.
77

88
## Installing and running
99

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+
1012
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.
1113

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.
1315

1416
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`.
1517

1618
**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.
1719

1820
## Python code
1921

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.
2123

2224
The experiments involve calling Python functions with different types of arguments and returns, and manipulating Python
2325
objects of different types.

0 commit comments

Comments
 (0)