from netmiko.paloalto import PaloAltoPanosSSH
import virtualenvwrapper.hook_loader

connectConfig = {
    'device_type': 'paloalto_panos',
    'host': '172.16.8.81',
    'username': 'python-api',
    'password': '<PASSWORD>'
}

net_connect = PaloAltoPanosSSH(**connectConfig)

# output = net_connect.send_command('show clock')
output = net_connect.send_command('show object dynamic-address-group name cloud-env')
print("-----------start--------------")
print(output)
print("-----------end--------------")

# config_commands = ['set address test-003 tag cloud-env ip-netmask 255.255.255.0',
#                    "commit"]
# config_commands = ['delete address test-002 tag insideIP']

# output = net_connect.send_config_set(config_commands)
# print(output)

from netmiko.paloalto import PaloAltoPanosSSH
import virtualenvwrapper.hook_loader

connectConfig = {
    'device_type': 'paloalto_panos',
    'host': '172.16.8.81',
    'username': 'python-api',
    'password': '<PASSWORD>'
}

net_connect = PaloAltoPanosSSH(**connectConfig)

# output = net_connect.send_command('show clock')
output = net_connect.send_command('show object dynamic-address-group name cloud-env')
print("-----------start--------------")
print(output)
print("-----------end--------------")

# config_commands = ['set address test-003 tag cloud-env ip-netmask 255.255.255.0',
#                    "commit"]
# config_commands = ['delete address test-002 tag insideIP']

# output = net_connect.send_config_set(config_commands)
# print(output)

# output = net_connect.send_command('show clock') # config_commands = ['set address test-003 tag cloud-env ip-netmask 255.255.255.0', #                    "commit"] # config_commands = ['delete address test-002 tag insideIP'] # output = net_connect.send_config_set(config_commands) # print(output)