-
-
17 May 2022 21:06:21 UTC
- Distribution: App-Netdisco
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (20)
- Testers
- Kwalitee
Bus factor: 1- License: bsd
- Activity
24 month- Tools
- Download (4.29MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Algorithm::Cron
- AnyEvent
- AnyEvent::DNS::EtcHosts
- App::cpanminus
- App::local::lib::helper
- Archive::Extract
- Authen::Radius
- Authen::TacacsPlus
- CGI::Expand
- Command::Runner
- DBD::Pg
- DBIx::Class
- DBIx::Class::Helpers
- Daemon::Control
- Dancer
- Dancer::Plugin::Auth::Extensible
- Dancer::Plugin::DBIC
- Dancer::Plugin::Passphrase
- Dancer::Plugin::Swagger
- Dancer::Session::Cookie
- Data::Printer
- Data::Visitor::Tiny
- EV
- Expect
- File::Path
- File::ShareDir
- File::Slurper
- File::Spec::Functions
- Guard
- HTML::Parser
- HTTP::Tiny
- IO::Socket::INET6
- IO::Socket::SSL
- JSON
- JSON::PP
- JSON::XS
- List::MoreUtils
- List::Util
- MCE
- MIME::Base64
- Module::Load
- Moo
- Net::DNS
- Net::Domain
- Net::LDAP
- Net::OpenSSH
- NetAddr::IP
- NetAddr::MAC
- Opcode
- Package::DeprecationManager
- Path::Class
- Plack
- Plack::Handler::Twiggy
- Plack::Middleware::Debug
- Plack::Middleware::Expires
- Plack::Middleware::Headers
- Plack::Middleware::ReverseProxy
- Pod::Usage
- Regexp::Common
- Role::Tiny
- SNMP::Info
- SQL::Abstract
- SQL::Translator
- Scope::Guard
- Sereal
- Session::Storage::Secure
- Socket6
- Starman
- Storable
- Sub::Util
- Sys::SigAction
- Template
- Template::AutoFilter
- Template::Plugin::CSV
- Template::Plugin::Number::Format
- Term::ReadLine
- Term::UI
- Try::Tiny
- URI
- URI::Based
- URL::Encode
- URL::Encode::XS
- YAML
- YAML::XS
- aliased
- autovivification
- namespace::clean
- version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
App::Netdisco::Util::Graph
SYNOPSIS
$ brew install graphviz <-- install graphviz on your system $ ~/bin/localenv bash $ cpanm --notest Graph GraphViz $ mkdir ~/graph use App::Netdisco::Util::Graph; graph;
DESCRIPTION
Generate GraphViz output from Netdisco data. Requires that the Graph and GraphViz distributions be installed.
Requires the same config as for Netdisco 1, but within a
graph
key. Seeshare/config.yml
in the source distribution for an example.The
graph
subroutine is exported by default. The:all
tag will export all subroutines.EXPORT
EXPORT_OK
- graph_each($graph_obj, $name)
-
Generates subgraph. Does actual GraphViz calls.
- graph_addnode($graphviz_obj, $node_ip)
-
Checks for mapping settings in config file and adds node to the GraphViz object.
- make_graph()
-
Returns
Graph::Undirected
object that represents the discovered network.Graph is made by loading all the
device_port
entries that have a neighbor, using them as edges. Then each device seen in those entries is added as a vertex.Nodes without topology information are not included.
Module Install Instructions
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm App::Netdisco
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.