Skip to content

Commit

Permalink
Merge pull request #130 from gisce/IMP_NEW_cli_stgip_ntpip
Browse files Browse the repository at this point in the history
NEW Cli commands stgip  &ntpip
  • Loading branch information
tinogis authored Jan 28, 2025
2 parents d259ed3 + f29f731 commit de60923
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions primestg/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
'dlms': {'order': 'B12', 'func': 'order_raw_dlms'},
# CNC config
'cnc_ftpip': {'order': 'B07', 'func': 'set_concentrator_ip'},
'cnc_ftpntp': {'order': 'B07', 'func': 'set_concentrator_ip'},
'cnc_ftpstg': {'order': 'B07', 'func': 'set_concentrator_ip'},
'cnc_ntpip': {'order': 'B07', 'func': 'set_concentrator_ip'},
'cnc_stgip': {'order': 'B07', 'func': 'set_concentrator_ip'},
}


Expand Down Expand Up @@ -175,6 +175,14 @@ def sends_order(**kwargs):
vals = {
'IPftp': kwargs['ip']
}
elif order_name == 'cnc_ntpip':
vals = {
'IPNTP': kwargs['ip']
}
elif order_name == 'cnc_stgip':
vals = {
'IPstg': kwargs['ip']
}

vals.update({
'date_to': format_timestamp(datetime.now()+timedelta(hours=1)),
Expand Down

0 comments on commit de60923

Please sign in to comment.