Skip to content

Commit

Permalink
Merge pull request #1705 from timgates42/bugfix_typos
Browse files Browse the repository at this point in the history
docs: Fix a few typos
  • Loading branch information
mirceaulinic committed Jul 26, 2022
2 parents 9438938 + 553fa1c commit ed8ff71
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/support/ios.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ File Operation Prompts
______________________

By default IOS will prompt for confirmation on file operations. These prompts need to be disabled before the NAPALM-ios driver performs any such operation on the device.
This can be controlled using the `auto_file_prompt` optional arguement:
This can be controlled using the `auto_file_prompt` optional argument:

* `auto_file_prompt=True` (default): NAPALM will automatically add `file prompt quiet` to the device configuration before performing file operations,
and un-configure it again afterwards. If the device already had the command in its configuration then it will be silently removed as a result, and
Expand Down
2 changes: 1 addition & 1 deletion napalm/eos/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def get_interfaces_counters(self):

def get_bgp_neighbors(self):
def get_re_group(res, key, default=None):
"""Small helper to retrive data from re match groups"""
"""Small helper to retrieve data from re match groups"""
try:
return res.group(key)
except KeyError:
Expand Down
2 changes: 1 addition & 1 deletion napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ def _get_bgp_route_attr(self, destination, vrf, next_hop, ip_version=4):
# next-hop is not known in this vrf, route leaked from
# other vrf or from vpnv4 table?
# get remote AS nr. from as-path if it is ebgp neighbor
# localy sourced prefix is not in routing table as a bgp route (i hope...)
# locally sourced prefix is not in routing table as a bgp route (i hope...)
if search_re_dict["bgpie"]["result"] == "external":
bgpras = (
search_re_dict["aspath"]["result"]
Expand Down
8 changes: 4 additions & 4 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ def _unlock(self):

def _rpc(self, get, child=None, **kwargs):
"""
This allows you to construct an arbitrary RPC call to retreive common stuff. For example:
This allows you to construct an arbitrary RPC call to retrieve common stuff. For example:
Configuration: get: "<get-configuration/>"
Interface information: get: "<get-interface-information/>"
A particular interfacece information:
A particular interface information:
get: "<get-interface-information/>"
child: "<interface-name>ge-0/0/0</interface-name>"
"""
Expand Down Expand Up @@ -1169,7 +1169,7 @@ def update_dict(d, u): # for deep dictionary update

def build_prefix_limit(**args):
"""
Transform the lements of a dictionary into nested dictionaries.
Transform the elements of a dictionary into nested dictionaries.
Example:
{
Expand Down Expand Up @@ -1824,7 +1824,7 @@ def get_route_to(self, destination="", protocol="", longer=False):
try:
routes_table.get(**rt_kargs)
except RpcTimeoutError:
# on devices with milions of routes
# on devices with millions of routes
# in case the destination is too generic (e.g.: 10/8)
# will take very very long to determine all routes and
# moreover will return a huge list
Expand Down
2 changes: 1 addition & 1 deletion napalm/pyIOSXR/iosxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def commit_replace_config(self, label=None, comment=None, confirmed=None):

def discard_config(self):
"""
Clear uncommited changes in the current session.
Clear uncommitted changes in the current session.
Clear previously loaded configuration on the device without committing it.
"""
Expand Down
2 changes: 1 addition & 1 deletion test/base/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_load_template(self):
custom path
* check if can load correct template from custom path
* check if template passed as string can be loaded
* check that the search path setup by MRO is correct when loading an incorrecet template
* check that the search path setup by MRO is correct when loading an incorrect template
"""

self.assertTrue(HAS_JINJA) # firstly check if jinja2 is installed
Expand Down
2 changes: 1 addition & 1 deletion test/pyiosxr/test_iosxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test__getattr_show_config(self):

def test__getattr__no_show(self):

"""Test special attribute __getattr__ agains a no-show command"""
"""Test special attribute __getattr__ against a no-show command"""

raised = False

Expand Down

0 comments on commit ed8ff71

Please sign in to comment.