additional doc examples
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user