User Tools

Site Tools


esmith:networksdb

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
esmith:networksdb [2015/05/22 07:13]
stephdl [get_by_role]
esmith:networksdb [2019/06/05 19:48] (current)
Line 49: 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 115: 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.
esmith/networksdb.1432278782.txt.gz · Last modified: 2019/06/05 19:48 (external edit)