debian/0000775000000000000000000000000011446115703007172 5ustar debian/README.Debian0000664000000000000000000000053611446115642011241 0ustar The pemu binary that comes with original dynagen tarball is not included in this package, but it includes library support for pemu. Debian Version of dynagen doesn't use python-configobj modules that comes with upstream tar file. It uses modules from python-configobj debian package. Telnet command starts x-terminal-emulator in /etc/dynagen.ini. debian/README.source0000664000000000000000000000040311446115642011350 0ustar Building dynagen for Debian debian patches are generated using dpatch. Refer dpatch documentation for using it. dynagen is build using git, git-buildpackage, cdbs, pristine-tar and devscripts. -- Erik Wenzel Fri Jan 23 00:16:20 CET 2009 debian/changelog0000664000000000000000000001252011446115642011046 0ustar dynagen (0.11.0-6) unstable; urgency=low * [aa851ed1] changed patch system from dpatch to quilt -- Erik Wenzel Tue, 21 Sep 2010 11:47:52 +0000 dynagen (0.11.0-5) unstable; urgency=low * [f28ba08c] [rules] removed bashisms (Closes: 581478) * [49e43843] [control] bumped standards version; nothing changed * [ff2d8f63] [control] changed build dependency from python-all-dev to python-all -- Erik Wenzel Wed, 19 May 2010 22:02:56 +0200 dynagen (0.11.0-4) unstable; urgency=low * [d7e67068] [rules] fixed unnessesary chmod, which triggered a ftbfs caused by change in (Closes: 556212) - thanks to Kumar Appaiah and Jakub Wilk * [ed788f81] [control] bumped standards version; nothing changed -- Erik Wenzel Sun, 15 Nov 2009 21:04:58 +0100 dynagen (0.11.0-3) unstable; urgency=low * [f5e4016f] added documentation about added libraries for pemu (LP: #321930) -- Erik Wenzel Sun, 08 Mar 2009 17:04:06 +0100 dynagen (0.11.0-2) unstable; urgency=low * [ce625b69] [control] added dependency to python * [3485eac1] [control] changed architecture to all * [3c96ae26] added missing module confConsole to patch 10_setup.py.dpatch * [9488c387] [rules] removed file mode cleanup in clean target * [7285984a] added missing pemu_lib to patch 10_setup.py.dpatch -- Erik Wenzel Sat, 07 Mar 2009 18:14:06 +0100 dynagen (0.11.0-1) unstable; urgency=low * [44fcae27] new upstream release * [9d31a99c] [control] added misc:Depends as lintian suggests * [f75c15d9] added README.source * [e76e2cb4] [rules] clean target cleanup * [1f0af824] [control] added vcs fields * [00da834a] updated packeges used in README.source * [db1b7273] [README.source] documented pemu binary removal from package -- Erik Wenzel Fri, 23 Jan 2009 00:39:57 +0100 dynagen (0.10.1-2) unstable; urgency=low * [control] Added DebTags * [control] Added homepage field * [control] bumped standards-version * [copyright] added years * [watch] cleanup -- Erik Wenzel Tue, 01 Apr 2008 21:50:14 +0000 dynagen (0.10.1-1) unstable; urgency=low * New upstream release * updated dependencies * should only be built on architectures where dynamips is available (Closes: #438462) * Package is only installable on i386 (Closes: #419741) -- Erik Wenzel Mon, 10 Sep 2007 07:54:52 +0000 dynagen (0.9.3-1) unstable; urgency=low * New upstream release -- Erik Wenzel Sat, 23 Jun 2007 23:19:43 +0000 dynagen (0.9.2-1) unstable; urgency=low * New upstream release -- Erik Wenzel Sun, 06 May 2007 10:06:26 +0000 dynagen (0.9.0-1) unstable; urgency=low * New upstream release * Depends on dynamips but it is not installable (Closes: #386416) dynamips is released -- Erik Wenzel Sat, 24 Feb 2007 18:36:18 +0000 dynagen (0.8.3-2) unstable; urgency=low * FTBFS: make: dpatch: Command not found (Closes: #406755) * [control] added build-dependency dpatch * [control]: updated dependendcy to dynamips_0.2.5-0.2.6RC5 -- Erik Wenzel Sun, 14 Jan 2007 18:45:03 +0000 dynagen (0.8.3-1) unstable; urgency=low * New upstream release -- Erik Wenzel Tue, 9 Jan 2007 22:08:16 +0000 dynagen (0.8.2-1) unstable; urgency=low * New upstream release -- Erik Wenzel Mon, 11 Dec 2006 12:35:45 +0000 dynagen (0.8.0-1) unstable; urgency=low * new upstream release -- Erik Wenzel Sat, 18 Nov 2006 13:26:48 +0100 dynagen (0.6.0-1) unstable; urgency=low * new upstream release -- Erik Wenzel Sun, 15 Oct 2006 22:44:59 +0200 dynagen (0.5.2-1) unstable; urgency=low * New upstream release * added watch file -- Erik Wenzel Sun, 1 Oct 2006 16:40:16 +0200 dynagen (0.5.1-1) unstable; urgency=low * New upstream release -- Erik Wenzel Sat, 16 Sep 2006 14:55:44 +0200 dynagen (0.5.0-1) unstable; urgency=low * New upstream release * fixed typo in manpage -- Erik Wenzel Tue, 5 Sep 2006 10:05:14 +0200 dynagen (0.4.3-5) unstable; urgency=low * docs/ directory was missing -- Erik Wenzel Sat, 2 Sep 2006 17:55:43 +0200 dynagen (0.4.3-4) unstable; urgency=low * [control] removed dependencies from python and python-dev from Build-Depends. Leaving python-all-dev. To satisfy lintian. * [rules] removed upstream COPYING.gz from package. * dynagen man page written -- Erik Wenzel Wed, 30 Aug 2006 00:03:29 +0200 dynagen (0.4.3-3) unstable; urgency=low * [lintian] fixed file permissions * [lintian] added stricter dependencies for python-support -- Erik Wenzel Sat, 26 Aug 2006 19:32:12 +0200 dynagen (0.4.3-2) unstable; urgency=low * dynagen.ini: changed telnet client to x-terminal-emulator -- Erik Wenzel Fri, 25 Aug 2006 15:59:17 +0200 dynagen (0.4.3-1) unstable; urgency=low * Initial release. (Closes: #383072) * created control, copyright, rules, changelog, README.Debian, install files * created setup.py * patch written to read global configuration file from INIPATH and configspec file from CONFIGSPECPATH -- Erik Wenzel Thu, 24 Aug 2006 20:12:42 +0200 debian/control0000664000000000000000000000316011446115642010577 0ustar Source: dynagen Section: contrib/net Priority: optional Maintainer: Erik Wenzel Homepage: http://dynagen.org/ Build-Depends: python-all, cdbs (>= 0.4.43), debhelper (>= 5.0.37.2), python-support (>= 1.0.4), quilt (>= 0.40) Standards-Version: 3.9.1 Vcs-Git: git://gpl.code.de/git/dynagen Vcs-Browser: http://gpl.code.de/gitweb?p=dynagen.git;a=summary Package: dynagen Architecture: all Depends: ${python:Depends}, ${misc:Depends}, dynamips (>=0.2.7-0.2.8RC1), python-configobj (>=4.3.2), python Provides: ${python:Provides} Description: Cisco 7200 Router Emulator Command Line Interface Dynagen is a text-based front end for Dynamips, that uses the Hypervisor mode for communication with Dynamips. Dynagen simplifies building and working with virtual networks: * Uses a simple, easy to understand configuration file for specifying virtual router hardware configurations * Simple syntax for interconnecting routers, bridges, frame-relay and ATM switches. No need to deal with NetIOs * Can work in a client / server mode, with Dynagen running on your workstation communicating to Dynamips running on a back-end server. Dynagen can also control multiple Dynamips servers simultaneously for distributing large virtual networks across several machines. * Provides a management CLI for listing devices, starting, stopping, reloading, suspending, and resuming virtual routers. Tag: admin::configuring, admin::monitoring, implemented-in::python, interface::shell, network::routing, protocol::TODO, protocol::ip, role::program, scope::utility, use::checking, use::configuring, use::monitor, use::routing debian/copyright0000664000000000000000000000212711446115642011131 0ustar Initial Debianization: This package was debianized by Erik Wenzel on So Aug 13 14:11:42 CEST 2006 Source: It was downloaded from http://sourceforge.net/projects/dyna-gen Upstream Authors and Copyright 2006, 2007: Greg Anuzelli (dynagen@gmail.com) License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/docs0000664000000000000000000000002311446115642010042 0ustar README.txt COPYING debian/dynagen.10000664000000000000000000002125111446115642010704 0ustar .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH DYNAGEN 1 "Aug 29, 2006" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME dynagen \- command line interface to dynamips Cisco 7200 Emulator .SH SYNOPSIS .B dynagen .RI [ options ] \fIconfiguration file\fP .br .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. .SH DESCRIPTION \fBDynagen\fP is a text-based front end for \fIDynamips\fP, that uses the \fIhypervisor\fP mode for communication with \fIDynamips\fP. \fBDynagen\fP simplifies building and working with virtual networks. \fBDynagen\fP uses a simple and easy to understand configuration file for specifying virtual router hardware configurations. Configuration file has a simple syntax for interconnecting routers, bridges, frame-relay and ATM switches. No need to deal with NetIO's. \fBDynagen\fP provides a management CLI for listing devices, starting, stopping, reloading, suspending and resuming virtual routers. .br \fBDynagen\fP can work in a client server mode, with \fBdynagen\fP running on your Workstation communicating to \fIdynamips\fP servers running ona back-end server. \fBDynagen\fP can also control multiple \fIdynamips\fP servers simultaneously for distributing large virtual networks across several machines. .PP Before running \fBdynagen\fP you need to start \fIdynamips\fP: .PP nice dynamips \-H 7200 & .PP .SH OPTIONS This program follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-n, \-\-nosend Do not send any command to dynamips. .TP .B \-d, \-\-debug Show debugging information. .TP .B \-h, \-\-help Show summary of options. .TP .B \-\-version Show version. .SH CONFIGURATION FILE OPTIONS Empty lines or lines starting with a hash ('#') are ignored. .br Configuration file, in other documentation also called \fInetwork\fP file, knows three sections: global section, server section which starts with [...] and device section which start with [[...]]. Server section and device section can have multiple occurrencies. .br .B Server Section: [] .br .B Device Section: [[7200|ROUTER|FRSW|ATMSW|ETHSW ]] The 7200 section specifies defaults for all 7200 routers on this Dynamips server. Everything in this section is optional, and defaults to whatever the default is in Dynamips .br .TP .B Global Configuration variable .B autostart (Default: True) .br By default, all routers are automatically started when a lab is launched. The autostart keyword overrides this behavior, and the lab must manually be started (start /all). .TP .B Server Configuration variables .B port <1-65535> (Default: 7200) .br Hypervision port to connect to. .br .B workingdir (Default: None) .br Set the directory where \fIDynamips\fP will store all the device files for this network. This is the fully qualified path relative to the system running \fIdynamips\fP. .br .B console <1-65535> (Default: 2000) .br Base console port. New instances that do not specify a console port will default to this + the instance number. .br .B udp <1-65535> (Default: 10000) .br Set the base UDP port for NIOs. .br .TP .B Device Configuration variables .TP .B [[7200]] The 7200 section specifies defaults for all 7200 routers on this Dynamips server. Everything in this section is optional, and defaults to whatever the default is in Dynamips. .B image (Default: None) .br Full path to 7200 IOS image file. This is the fully qualified path relative to the system running dynamips. .br .B ram (Default: None) Amount of Virtual RAM to allocate to each router instance. .br .B rom (Default: None) .br Size of ROM. .br .B nvram (Default: None) .br Size of NVRAM. .br .B disk0 (Default: None) .br Set size of PCMCIA ATA disk0 .br .B disk1 (Default: None) .br Set size of PCMCIA ATA disk1 .br .B cnfg (Default: None) .br Configuration file to import. This is the fully qualified path relative to the system running dynamips. .br .B confreg (Default: 0x2102) 0x210X where X=0,1,2 .br Set the configuration register .br .B idlepc (Default: None) .br Set the Idle PC value. Include a description here. .br .B exec_area (Default: None) .br Set the exec area size. .br .B clock (Default: None) .br Clock divisor (should no longer been needed as of dynamips 0.2.5 RC1) .br .B npe (Default: None) .br NPE type. .br .B midplane (Default: None) .br Midplane, either "std" or "vxr" .br .B mmap (Default: True) .br Set to false to use real memory rather than a disk file for router vitural memory. Conserves RAM at the expense of performance. .TP .B [[ROUTER ]] All options from the 7200 section are options here as well, including "autostart". must be unique in network file. .br .B model 7200 (Default: 7200) .br .B console <1-65535> (Default: None) .br Console port. Defaults to the server's base console port (specified in the server section) + instance number. .br .B aux <1-65535> (Default: None) .br Aux port. .br .B slotX <0-X> (Default: None) .br Manual PA specification. This is optional, and if not done \fBdynagen\fP will make sane decisions based on the interface specifications. .RI slot0 = PA-C7200-IO-FE # Ethernet in slot 0 slot1 = PA-FE-TX # Ethernet in slot 1 slot3 = PA-4T # PA-4T+ in slot 2 slot6 = PA-4E # PA-4E in slot 6 #slotx = PA-POS-OC3 # PA-POS-OC3 in slot x .br .B = .br Interface specification. Can take the following forms: .RI f1/0 = R2 f1/0 # Connect to f1/0 on device R2 f2/0 = LAN 1 # Connect to bridged LAN 1 s3/0 = R2 s3/0 # Connect to s3/0 on device R2 s3/1 = F1 1 # Connect to port 1 on device "F1" (a frame relay switch) s3/2 = F2 1 a4/0 = A1 1 # Connect to port 1 on device "A1" (an ATM switch) f5/0 = NIO_linux_eth:eth0 # manually specify an NIO [[ROUTER R2]] # Interface f1/0 will automatically be created because the interface was referenced in R1's config f2/0 = LAN 1 # Connect to bridged LAN 1 s4/0 = F1 2 s4/1 = F2 2 s4/2 = F1 3 a5/0 = A1 2 [[router R3]] # Case is not significant # Examples of other manually specified NIOs f1/0 = NIO_gen_eth:\\Device\\NPF_{B00A38DD-F10B-43B4-99F4-B4A078484487} f2/0 = NIO_udp:10000:172.0.0.1:10001 f3/0 = NIO_tap:tap0 f4/0 = NIO_unix:/tmp/local:/tmp/remote f5/0 = NIO_vde:foo:bar .br .TP .B [[ETHSW ]] Define an Ethernet Switch .br .RI [[ETHSW S1]] 1 = access 1 # Port 1 is an access port in vlan 1 2 = access 20 # Port 2 is an access port in vlan 20 3 = dot1q 1 # Port 3 is a trunk port (dot1q encapsulation) with native vlan 1 4 = dot1q 1 NIO_gen_eth:eth0 # Port 4 is trunk port (naitive vlan 1) that is connected to the host eth0 via the gen_eth NIO #4 = dot1q 1 NIO_gen_eth:\\Device\\NPF_{B00A38DD-F10B-43B4-99F4-B4A078484487} # Same as above, Windows example .br .TP .B [[FRSW ]] Each FRSW section defines a frame relay switch. All keywords are optional .br .RI 1:102 = 2:201 # Tell the FRSW to switch from port 1, DLCI 102 to port 2, DLCI 201. 1:103 = 3:301 # and from port 1, DLCI 103 to port 3, DLCI 301 [[FRSW F2]] 1:102 = 2:201 .br .TP .B [[ATMSW ]] Define an ATM Switch .br .RI 1:10 = 2:20 # Port 1, vpi 10 to port 2, vpi 20 #1:10:200 = 2:20:100 # Port 1, vpi 10, vci 200 to port 2, vpi 20, vci 100 .SH EXAMPLES .br See /usr/share/doc/dynagen/examples directory .SH BUGS .br Take a look at the Bug tracking system. .SH REPORTING BUGS .br Please send bug reports to http://www.ipflow.utc.fr/bts/ .SH SEE ALSO .br .UR http://www.ipflow.utc.fr/index.php/ .UE .br .UR http://www.ipflow.utc.fr/blog/ .UE .br .UR http://dyna-gen.sourceforge.net/ .UE .br .UR http://hacki.at/7200emu/index.php .UE .br .SH AUTHOR \fBdynagen\fP was written by Greg Anuzelli (dynagen@gmail.com) .br This manual page was written by Erik Wenzel for the Debian GNU/Linux system (but may be used by others). debian/examples0000664000000000000000000000001411446115642010730 0ustar sample_labs debian/install0000664000000000000000000000017411446115642010567 0ustar dynagen usr/bin debian/dynagen.1 usr/share/man/man1 dynagen.ini etc configspec usr/share/dynagen docs usr/share/doc/dynagen debian/patches/0000775000000000000000000000000011446115642010623 5ustar debian/patches/0001-setup.py.diff.patch0000664000000000000000000000212111446115642014714 0ustar From: Erik Wenzel Date: Tue, 21 Sep 2010 11:30:59 +0000 Subject: [PATCH] setup.py.diff # 10_setup.py.dpatch by --- setup.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9cbc803 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +"""Setup script for the dynagen module distribution.""" +# run this like python setup --root=/usr/local + +from distutils.core import setup, Extension + +setup( # Distribution meta-data + name = "dynagen", + version = "0.9.0", + description = "A frontend for dynamips", + author = "Greg Anuzelli", + author_email = "dynagen@gmail.com", + url = "http://sourceforge.net/projects/dyna-gen", + + py_modules = [ 'console', 'dynamips_lib', 'confConsole', 'pemu_lib' ] + #py_modules = [ 'configobj', 'console', 'dynamips_lib', 'validate'] +) + +print "If you have installed the modules, copy dynagen to some " +print "place in your $PATH, like /usr/local/bin/." -- debian/patches/series0000664000000000000000000000003111446115642012032 0ustar 0001-setup.py.diff.patch debian/rules0000775000000000000000000000364211446115642010261 0ustar #!/usr/bin/make -f # Copyright © 2003 Colin Walters # Copyright © 2004, 2005, 2006 Loic Minier DEB_PYTHON_SYSTEM = pysupport include /usr/share/cdbs/1/rules/buildcore.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk #include /usr/share/cdbs/1/class/makefile.mk # define clean target DEB_MAKE_CLEAN_TARGET = clean # That will avoid passing CFLAGS #DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) #DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/dynamips/ # Moved to debian/install binary-predeb/dynagen:: # install -d debian/$(cdbs_curpkg)/usr/bin/ # install -m 775 dynagen debian/$(cdbs_curpkg)/usr/bin/dynagen rm -rf debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/.DS_Store.gz #chmod 755 debian/$(cdbs_curpkg)/usr/share/python-support/dynagen/dynamips_lib.py #chmod 755 debian/$(cdbs_curpkg)/usr/share/python-support/dynagen/console.py chmod 644 debian/$(cdbs_curpkg)/etc/dynagen.ini chmod 644 debian/$(cdbs_curpkg)/usr/share/dynagen/configspec chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/multiserver/multiserver.net chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/frame_relay/frame_relay1.net chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/simple1/simple1.net chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/simple2/simple2.net chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/ethernet_switch/ethsw1.net rm debian/$(cdbs_curpkg)/usr/share/doc/dynagen/COPYING.gz #install -d debian/$(cdbs_curpkg)/usr/man/man1 #install -m debian/dynagen.1 debian/$(cdbs_curpkg)/usr/man/man1/dynagen.1 #gzip -9 debian/dynagen.1 debian/$(cdbs_curpkg)/usr/man/man1/dynagen.1 clean:: rm -rf debian/compat rm -rf debian/pycompat debian/source/0000775000000000000000000000000011446115642010474 5ustar debian/source/format0000664000000000000000000000001411446115642011702 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000006711446115642010230 0ustar version=3 http://sf.net/dyna-gen/dynagen-(.*)\.tar\.gz