summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-06-16 20:24:44 +0200
committerChristian Breunig <christian@breunig.cc>2026-06-16 20:24:44 +0200
commitfa853ed8f25b5b9bf396d6e819b2c6259e7f5f42 (patch)
tree9ee5a9c573512f393384d5adc9211457915a3bac /src/op_mode
parent4fb32bc179127691f40c8e93c55877aa76f10416 (diff)
downloadvyos-1x-fa853ed8f25b5b9bf396d6e819b2c6259e7f5f42.tar.gz
vyos-1x-fa853ed8f25b5b9bf396d6e819b2c6259e7f5f42.zip
T8923: normalize "can not" to "cannot"
Replace two-word "can not" / "Can not" with "cannot" across comments, ConfigError messages, CLI help text, and op-mode output. Standard SNMP MIB files under mibs/ are left unchanged.
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/container.py2
-rwxr-xr-xsrc/op_mode/format_disk.py4
-rwxr-xr-xsrc/op_mode/image_installer.py2
-rwxr-xr-xsrc/op_mode/lldp.py4
-rw-r--r--src/op_mode/mtr.py2
-rwxr-xr-xsrc/op_mode/show-bond.py2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/op_mode/container.py b/src/op_mode/container.py
index e0753f1be..81dc35098 100755
--- a/src/op_mode/container.py
+++ b/src/op_mode/container.py
@@ -107,7 +107,7 @@ def delete_image(name: str, force: typing.Optional[bool] = False):
if name == 'all':
# gather list of all images and pass them to the removal list
name = cmd('sudo podman image ls --quiet')
- # If there are no container images left, we can not delete them all
+ # If there are no container images left, we cannot delete them all
if not name: return
# replace newline with whitespace
name = name.replace('\n', ' ')
diff --git a/src/op_mode/format_disk.py b/src/op_mode/format_disk.py
index 56cb51a02..095892791 100755
--- a/src/op_mode/format_disk.py
+++ b/src/op_mode/format_disk.py
@@ -106,11 +106,11 @@ if __name__ == '__main__':
exit(1)
if target_disk not in eligible_target_disks:
- print(f'Device {target_disk} can not be formatted')
+ print(f'Device {target_disk} cannot be formatted')
exit(1)
if proto_disk not in eligible_proto_disks:
- print(f'Device {proto_disk} can not be used as a prototype for {target_disk}')
+ print(f'Device {proto_disk} cannot be used as a prototype for {target_disk}')
exit(1)
if is_busy(target_disk):
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 9ac7718de..b766c3d1e 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -600,7 +600,7 @@ def configure_authentication(config_file: str, password: str) -> None:
config_file (str): path of target config file
password (str): plaintext password
- N.B. this can not be deferred by simply setting the plaintext password
+ N.B. this cannot be deferred by simply setting the plaintext password
and relying on the config mode script to process at boot, as the config
will not automatically be saved in that case, thus leaving the
plaintext exposed
diff --git a/src/op_mode/lldp.py b/src/op_mode/lldp.py
index 6d77db5bc..0994b5d49 100755
--- a/src/op_mode/lldp.py
+++ b/src/op_mode/lldp.py
@@ -64,7 +64,7 @@ def _get_formatted_output(raw_data):
tmp = dict_search('lldp.interface', raw_data)
if not tmp:
return None
- # One can not always ensure that "interface" is of type list, add safeguard.
+ # One cannot always ensure that "interface" is of type list, add safeguard.
# E.G. Juniper Networks, Inc. ex2300-c-12t only has a dict, not a list of dicts
if isinstance(tmp, dict):
tmp = [tmp]
@@ -87,7 +87,7 @@ def _get_formatted_output(raw_data):
# Capabilities
cap = ''
capabilities = jmespath.search('chassis.[*][0][0].capability', values)
- # One can not always ensure that "capability" is of type list, add
+ # One cannot always ensure that "capability" is of type list, add
# safeguard. E.G. Unify US-24-250W only has a dict, not a list of dicts
if isinstance(capabilities, dict):
capabilities = [capabilities]
diff --git a/src/op_mode/mtr.py b/src/op_mode/mtr.py
index 646d95e7b..374d42dd8 100644
--- a/src/op_mode/mtr.py
+++ b/src/op_mode/mtr.py
@@ -137,7 +137,7 @@ options = {
'tcp': {
'mtr': '{command} --tcp',
'type': 'noarg',
- 'help': ' Use TCP SYN packets instead of ICMP ECHO. PACKETSIZE is ignored, since SYN packets can not contain data.',
+ 'help': ' Use TCP SYN packets instead of ICMP ECHO. PACKETSIZE is ignored, since SYN packets cannot contain data.',
},
'sctp': {
'mtr': '{command} --sctp',
diff --git a/src/op_mode/show-bond.py b/src/op_mode/show-bond.py
index 19abc440a..49e5f7234 100755
--- a/src/op_mode/show-bond.py
+++ b/src/op_mode/show-bond.py
@@ -47,7 +47,7 @@ TMPL_INDIVIDUAL_BOND = """Interface RX: bytes packets TX: bytes pac
"""
if args.slaves and args.interface:
- exit('Can not use both --slaves and --interfaces option at the same time')
+ exit('Cannot use both --slaves and --interfaces option at the same time')
parser.print_help()
elif args.slaves: