diff --git a/primestg/cli.py b/primestg/cli.py index 4d7a4eb..a3d2440 100644 --- a/primestg/cli.py +++ b/primestg/cli.py @@ -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'}, } @@ -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)),