User Tools

Site Tools


esmith:networksdb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esmith:networksdb [2015/05/22 06:53]
stephdl created
esmith:networksdb [2019/06/05 19:48] (current)
Line 1: Line 1:
 ====== esmith::NetworksDB ====== ====== esmith::NetworksDB ======
- 
  
 esmith::NetworksDB(3) User Contributed Perl Documentationesmith::NetworksDB(3) esmith::NetworksDB(3) User Contributed Perl Documentationesmith::NetworksDB(3)
  
 +if you want the latest documentation, do 
 +
 +  perldoc -U esmith::NetworksDB
 ===== NAME ===== ===== NAME =====
  
Line 47: Line 49:
  
 If called in list context, returns the array of addresses and network/netmask strings. It’s trivial, of course, to convert an array to a comma separated list :-) If called in list context, returns the array of addresses and network/netmask strings. It’s trivial, of course, to convert an array to a comma separated list :-)
 +  my $ndb = esmith::NetworksDB->open_ro;
 +  my @access = $ndb->local_access_spec;
 +then
 +  my $access = join ( ",", @access);
 +
 +===== Network interfaces methods =====
  
-Network interfaces methods 
 ====        interfaces ==== ====        interfaces ====
  
Line 113: Line 120:
 Returns the interface(s) with yellowe role. Returns the interface(s) with yellowe role.
  
-==        red ==+===        red ===
    
 Returns the interface(s) with red role. Returns the interface(s) with red role.
Line 126: Line 133:
 (END)  (END) 
  
-{{tag> development }}+{{tag> neth-development }}
esmith/networksdb.1432277624.txt.gz · Last modified: 2019/06/05 19:48 (external edit)