Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect_disconnect: T6261: correction to typo in check_ppp_running (backport #3347) #3348

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/op_mode/connect_disconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def connect(interface):
if os.path.isdir(f'/sys/class/net/{interface}'):
print(f'Interface {interface}: already connected!')
elif check_ppp_running(interface):
print(f'Interface {interface}: connection is beeing established!')
print(f'Interface {interface}: connection is being established!')
else:
print(f'Interface {interface}: connecting...')
call(f'systemctl restart ppp@{interface}.service')
Expand All @@ -58,7 +58,7 @@ def connect(interface):
else:
call(f'VYOS_TAGNODE_VALUE={interface} /usr/libexec/vyos/conf_mode/interfaces_wwan.py')
else:
print(f'Unknown interface {interface}, can not connect. Aborting!')
print(f'Unknown interface {interface}, cannot connect. Aborting!')

# Reaply QoS configuration
config = ConfigTreeQuery()
Expand Down Expand Up @@ -90,7 +90,7 @@ def disconnect(interface):
modem = interface.lstrip('wwan')
call(f'mmcli --modem {modem} --simple-disconnect', stdout=DEVNULL)
else:
print(f'Unknown interface {interface}, can not disconnect. Aborting!')
print(f'Unknown interface {interface}, cannot disconnect. Aborting!')

def main():
parser = argparse.ArgumentParser()
Expand Down
Loading