Commit graph

523 commits

Author SHA1 Message Date
cspiker
46baca85d9 Add OVS and Ryu Services to CORE for SDN support 2017-06-08 08:31:50 -07:00
cspiker
b37d1d52fa added new OVS service file 2017-06-07 12:41:52 -07:00
Rod A Santiago
a4f47a17e3 Merge branch 'master' of https://github.com/coreemu/core 2017-06-05 10:20:39 -07:00
Jeff Ahrenholz
856ded351c Merge pull request #122 from virtuald/errmsg
Emit more descriptive error message if config file is incorrect
2017-05-18 20:56:36 -07:00
Dustin Spicuzza
17e4fc0933 Emit more descriptive error message if config file is incorrect 2017-05-18 18:39:19 -04:00
Tom Goff
b4ce4e9370 gui: Fix using xfce4-terminal as the terminal program. 2017-05-18 21:38:30 +00:00
Blake J. Harnden
97f3c3a070 fixed issue with sending the wrong type flag from cleaning up configuration request code in services 2017-05-05 15:14:27 -07:00
Blake J. Harnden
8e9dc21c3c removed some commented out code and fixed a documentation parameter mistake 2017-05-04 15:24:45 -07:00
Blake J. Harnden
603179d8ca fix control net method naming error 2017-05-04 14:43:57 -07:00
Blake J. Harnden
fd29b4a141 fixed documentation for mac address paramters in seen locations 2017-05-04 14:22:02 -07:00
Blake J. Harnden
7ad57bfb53 removed the core server reference from sessions, added a shutdown handler to initiate callbacks for when a session shutsdown, this is how the core server can run the same functionality going forward, small core-daemon documentation cleanup 2017-05-04 13:49:14 -07:00
Blake J. Harnden
3f82c980de pass to help flesh out documentation for core.misc 2017-05-04 10:36:13 -07:00
Blake J. Harnden
8ade6f4f02 fixed bug with unpacking objects introduced while cleaning things up, added a basic gui broker test that depends on an existing daemon running 2017-05-03 15:29:15 -07:00
Blake J. Harnden
2b866e1b3f quick pass to try and provide documentation within core.netns 2017-05-03 13:20:56 -07:00
Blake J. Harnden
4ae7958a63 quick base to try and help flesh out documentation under core.* 2017-05-03 09:30:49 -07:00
Blake J. Harnden
8f45e5c4da core test cleanup, conslidating network creation for link modification testing 2017-04-27 14:49:51 -07:00
Blake J. Harnden
14cb7dc251 caught up with latest gitlab commits, added a new tests directory leveraging pytest based tests for testing core functionality 2017-04-27 13:34:23 -07:00
Blake J. Harnden
2fc6345138 catching up with commits: daemon: Add an instantiation-complete CORE API event type 2017-04-25 11:38:53 -07:00
Blake J. Harnden
00f4ebf5a9 initial commit after bringing over cleaned up code and testing some examples 2017-04-25 08:45:34 -07:00
Blake J. Harnden
c4858e6e0d added editorconfig file to help standardize development across IDEs 2017-04-21 14:16:48 -07:00
Blake J. Harnden
3d7a062866 added intellij idea configuration directory to gitignore 2017-04-21 14:13:13 -07:00
Blake J. Harnden
5d8fd14f7d added intellij project file to gitignore 2017-04-21 14:08:37 -07:00
Jeff Ahrenholz
0b0557e008 fix /var/run/quagga permissions for Ubuntu 16.04 2017-03-31 10:59:58 -07:00
Jeff Ahrenholz
724534e3ac fix broken Throughput Widget and Wireshark for node numbers above 10
this also fixes the Throughput Widget results when multiple sessions are running
2017-03-31 09:55:26 -07:00
Jeff Ahrenholz
de923091b3 Merge pull request #115 from gh0st42/master
fix to add correct broadcast address for ipv4 interfaces
2017-03-29 06:56:00 -07:00
lbaumgaertner
e665a122b6 fix to add correct broadcast address for ipv4 interfaces with netns backend 2017-03-28 12:00:24 +02:00
Tom Goff
67117a3af3 daemon: Improve importing custom services.
This should help avoid python module name conflicts.
2017-02-24 01:02:08 +00:00
adamson
56896bddd1 fixed issue with indexing EMANE RJ45 objects 2017-02-23 18:40:54 -05:00
adamson
c147d5b2f5 added option Throughput widge to observe transmissions/receptions separately if desired 2017-02-23 18:40:29 -05:00
Jeff Ahrenholz
c616699d77 Merge pull request #107 from gsomlo/distro_quagga
daemon: start Quagga with default user/group names
2017-02-23 08:30:55 -08:00
Jeff Ahrenholz
116033bffa Merge pull request #110 from gsomlo/f25_spec_iproute_tc
rpm: include iproute-tc [Build]Requires for fedora >= 25
2017-02-10 08:59:20 -08:00
Jeff Ahrenholz
c7324dbb45 Merge pull request #109 from coreemu/bugfix/issue24-fix-throughput-widget
Bugfix/issue24 fix Throughput Widget resolves #108
2017-02-10 08:58:24 -08:00
Gabriel Somlo
a70da2eb61 rpm: include iproute-tc [Build]Requires for fedora >= 25
As of F25, the 'tc' command was moved to a separate sub-package of
iproute, which must be included both at build- and run-time.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-02-10 11:34:01 -05:00
Jeff Ahrenholz
798793ed87 fix #24 Throughput Widget bug, now that hex interface numbers are used
(cherry picked from commit e8d4d5397c86d9edd454870f71c6ee72ea728df2)
2017-02-09 07:39:13 -08:00
Gabriel Somlo
b1ea0574e5 daemon: start Quagga with default user/group names
Allow native distribution packages to run with their default user
and group names by no longer forcing "-u root -g root" on any of
the Quagga daemons' command lines.

This should continue to allow hand-compiled and/or "side-loaded"
Quagga software to run as root, if configured to do so at build
time.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-02-02 11:25:53 -05:00
Jeff Ahrenholz
3e208ab4b7 Merge pull request #106 from gsomlo/cleanup_vtysh
daemon: remove Quagga 'vtysh' service
2017-02-01 08:21:35 -08:00
Gabriel Somlo
33906aae9f daemon: remove Quagga 'vtysh' service
Since all Quagga daemons are configured from a consolidated
location (the 'zebra' service), there is nothing left to do
for a dedicated service such as 'vtysh'. This patch removes
the service, along with all references to it from the rest
of the source tree (sample *.imn files, examples, etc.)

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-02-01 09:55:58 -05:00
Jeff Ahrenholz
b4c8be9e23 Merge pull request #103 from gsomlo/quagga_startup
daemon: streamline Quagga startup
2017-01-26 09:18:05 -08:00
Jeff Ahrenholz
3a34467e38 update NRL links from http to https; freshen content; resolves #105 2017-01-26 09:13:47 -08:00
Gabriel Somlo
6609d2c394 daemon: streamline Quagga startup
Currently, all Quagga daemons are started concurrently by their
respective CORE services, using "quaggaboot.sh" generated by the
'zebra' service. However, all routing services depend on 'zebra'
already running, and 'vtysh' depends on ALL other Quagga services
before it can push configuration from the common "Quagga.conf" to
all running daemons (see "waitforvtyfiles()" in "quaggaboot.sh").

The spinwait+timeout based implementation of "waitforvtyfiles()"
may, depending on load, give up too early and fail to configure
all Quagga daemons.

This patch streamlines the way Quagga daemons are started, by
launching them all from the 'zebra' service. The correct sequence
is to first launch the 'zebra' daemon itself, then proceed with
all routing daemons, and finish with a call to "vtysh -b" which
configures all running daemons.

The list of all applicable daemons to launch is obtained using
'grep' from Quagga.conf, in the same way "waitforvtyfiles()" used
to discover which *.vty files to look for in /var/run/quagga/.

The startup command for all services other than 'zebra' becomes
empty, and "quaggaboot.sh" issues a warning on attempts to have
it launch any other daemon.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-01-12 16:40:45 -05:00
Jeff Ahrenholz
003044d98b Merge pull request #102 from gsomlo/systemd_taskmax_fix
systemd: remove limit on fork() branching factor
2017-01-12 11:37:20 -08:00
Gabriel Somlo
da33defa41 systemd: remove limit on fork() branching factor
On distributions using systemd, a default limit on the number of
tasks allowed to be created from a given unit may be set by default
(e.g., on F24, "DefaultTasksAccounting=yes" and "DefaultTasksMax=512"
are set in /etc/systemd/system.conf. A large CORE simulation may well
exceed that limit, at least during startup when many (sub)shell
processes are generated using fork().

To avoid running into this limit, set "TasksMax=infinity" in the
core-daemon.service unit file template.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-01-12 14:14:41 -05:00
Jeff Ahrenholz
a56c86b0e4 Merge pull request #101 from kjacks21/patch-1
[MRG] DOC typo in EMANE install instructions
2017-01-11 07:38:08 -08:00
Kyle Jackson
49c91a2a31 [MRG] DOC typo in EMANE install instructions 2017-01-11 09:24:41 -05:00
Tom Goff
cec880e6e2 daemon: Add the EMANE TDMA model to the list of an available models. 2016-12-22 10:53:23 -05:00
Rod A Santiago
6e610f4309 ensured the shutdown event doesn't get sent until all node delete replies have been sent 2016-12-14 17:24:21 -08:00
Jeff Ahrenholz
6915eb2255 Merge pull request #96 from Shatnerz/core-readme-update
Core README update to ReStructuredText
2016-11-16 10:37:20 -08:00
Andrew Ahlers
f80304384a Added direct link to manual 2016-10-22 21:18:17 -04:00
Andrew Ahlers
591de2cc9f Converted README to rst 2016-10-22 21:14:16 -04:00
Tom Goff
7bbc2aef0e daemon: Remove the SIGPIPE signal handler.
Python installs a default signal handler for SIGPIPE that raises an
exception.  Let core-daemon handle the exception instead of exiting.
2016-10-20 18:10:41 -04:00