Skip to content

Commit

Permalink
Merge pull request #3348 from vyos/mergify/bp/sagitta/pr-3347
Browse files Browse the repository at this point in the history
connect_disconnect: T6261: correction to typo in check_ppp_running (backport #3347)
  • Loading branch information
c-po authored Apr 23, 2024
2 parents 92baf98 + 9d90e21 commit b734d1f
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit b734d1f

Please sign in to comment.