additional doc examples

This commit is contained in:
Oliver Gorwits
2017-11-15 22:14:47 +00:00
parent 620b3fe544
commit 71ee869c02
2 changed files with 11 additions and 5 deletions

View File

@@ -52,8 +52,11 @@ val2} >> on one line or C<key: value> on separate lines, e.g.:
=item * =item *
String - Quoted, just like in Perl (and essential if the item contains the String - Optionally quoted, just like in Perl (quotes required if the item
colon character). contains a colon character). For example:
log: 'debug'
expire_devices: 15
=back =back
@@ -645,11 +648,11 @@ renumbered to use that interface as its new identity and the process stops.
When using an Access Control List for the value (interface selection), as well When using an Access Control List for the value (interface selection), as well
as the options described in L</"ACCESS CONTROL LISTS"> you can use as the options described in L</"ACCESS CONTROL LISTS"> you can use
"C<port:regexp>" to match an interface's port name. For example to renumber "C<port:regexp>" to match an interface's port name. For example to renumber
all Arista devices to the IP and host name of their Mgmt1 interface (if they any device to the IP and host name of its Mgmt1 interface (if it has one), you
have one), you could use: could use:
device_identity: device_identity:
'vendor:arista': 'port:(?i)mgmt1' 'any': 'port:(?i)mgmt1'
Once a device is renumbered, its new identity is "sticky". That is, you could Once a device is renumbered, its new identity is "sticky". That is, you could
remove the C<device_identity> configuration and the next "discover" job will remove the C<device_identity> configuration and the next "discover" job will

View File

@@ -188,6 +188,9 @@ sub _get_external_community {
Takes an established L<SNMP::Info> instance and makes a fresh connection using Takes an established L<SNMP::Info> instance and makes a fresh connection using
community indexing, with the given C<$vlan> ID. Works for all SNMP versions. community indexing, with the given C<$vlan> ID. Works for all SNMP versions.
Passing VLAN "C<0>" (zero) will reset the indexing to the basic v2 community
or v3 empty context.
=cut =cut
sub snmp_comm_reindex { sub snmp_comm_reindex {