#!/usr/bin/env python
from __future__ import print_function
import sys
import json
import logging
from argparse import ArgumentParser

from util import get_url, post_and_wait, tagmapping, put_and_wait


def delete_file(file, deviceIds):

    payload= deviceIds
    url='network-device/sync?forceSync=true'

    response = put_and_wait(url, payload)
    print(response)


if __name__ ==  "__main__":
    parser = ArgumentParser(description='Select options.')
    parser.add_argument('--tag', type=str, required=False,
                        help="devices that match this tag")
    parser.add_argument('--image', type=str, required=False,
                        help="devices that match this tag")

    args = parser.parse_args()

    deviceIds = tagmapping(args.tag)
    delete_file(args.image, deviceIds)
52f1430e71f909b5cd3361c4d5662d8d2eca8396
<mask token>

<mask token>


def delete_file(file, deviceIds):
    payload = deviceIds
    url = 'network-device/sync?forceSync=true'
    response = put_and_wait(url, payload)
    print(response)


<mask token>

<mask token>


def delete_file(file, deviceIds):
    payload = deviceIds
    url = 'network-device/sync?forceSync=true'
    response = put_and_wait(url, payload)
    print(response)


if __name__ == '__main__':
    parser = ArgumentParser(description='Select options.')
    parser.add_argument('--tag', type=str, required=False, help=
        'devices that match this tag')
    parser.add_argument('--image', type=str, required=False, help=
        'devices that match this tag')
    args = parser.parse_args()
    deviceIds = tagmapping(args.tag)
    delete_file(args.image, deviceIds)

from __future__ import print_function
import sys
import json
import logging
from argparse import ArgumentParser
from util import get_url, post_and_wait, tagmapping, put_and_wait


def delete_file(file, deviceIds):
    payload = deviceIds
    url = 'network-device/sync?forceSync=true'
    response = put_and_wait(url, payload)
    print(response)


if __name__ == '__main__':
    parser = ArgumentParser(description='Select options.')
    parser.add_argument('--tag', type=str, required=False, help=
        'devices that match this tag')
    parser.add_argument('--image', type=str, required=False, help=
        'devices that match this tag')
    args = parser.parse_args()
    deviceIds = tagmapping(args.tag)
    delete_file(args.image, deviceIds)

#!/usr/bin/env python
from __future__ import print_function
import sys
import json
import logging
from argparse import ArgumentParser

from util import get_url, post_and_wait, tagmapping, put_and_wait


def delete_file(file, deviceIds):

    payload= deviceIds
    url='network-device/sync?forceSync=true'

    response = put_and_wait(url, payload)
    print(response)


if __name__ ==  "__main__":
    parser = ArgumentParser(description='Select options.')
    parser.add_argument('--tag', type=str, required=False,
                        help="devices that match this tag")
    parser.add_argument('--image', type=str, required=False,
                        help="devices that match this tag")

    args = parser.parse_args()

    deviceIds = tagmapping(args.tag)
    delete_file(args.image, deviceIds)