zzigonghttps://192.168.214.185:9443/prestapi/v2/conf/port/xg1zzigonghttps://192.168.214.185:9443/prestapi/v2/conf/port/xg1{'status': 'enable', 'name': 'xg1', 'duplex': '--', 'mdi-mdix': '--', 'auto-nego': 'disable', 'flow-ctrl': 'off', 'flood-rate': {'broadcast': '1500', 'multicast': '1500', 'dlf': '1500'}, 'packet-buffer': '--', 'sfp-mode': 'normal', 'speed': '1000', 'jumbo-frame': 'enable', 'description': 'Configuration Port'}zzigong
https://192.168.214.185:9443/prestapi/v2/conf/site/test
{'status': 'enable', 'synchronize': 'enable', 'retry': '5', 'location': 'local', 'name': 'test', 'peer': [{'ip': '1.1.1.1', 'id': '2', 'description': 'site peer'}], 'interval': '60', 'description': 'test1'}
runrunmake_data_beforemake_data_afterrunmake_data_before
make_data_after
after_join
putputputputputputput<type 'dict'>put<type 'dict'>curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "synchronize": "enable", "retry": "5", "location": "local", "name": "test", "peer": [{"ip": "1.1.1.1", "id": "2", "description": "site peer"}], "interval": "60", "description": "test1"}' https://192.168.214.185:9443/prestapi/v2/conf/site/testputcurl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "synchronize": "enable", "retry": "5", "location": "local", "name": "test", "peer": [{"ip": "1.1.1.1", "id": "2", "description": "site peer"}], "interval": "60", "description": "test1"}' https://192.168.214.185:9443/prestapi/v2/conf/site/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "synchronize": "enable", "retry": "5", "location": "local", "name": "test", "peer": [{"ip": "1.1.1.1", "id": "2", "description": "site peer"}], "interval": "60", "description": "test1"}' https://192.168.214.185:9443/prestapi/v2/conf/site/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "hc-condition": "any", "fail-action": "inactive-vips", "session-reset": "active", "dynamic-proximity": [{"ratio": "3", "name": "test"}], "sticky": {"destination-subnet": "255.255.255.0", "source-subnet": "255.255.255.0", "time": "300"}, "vip": [{"ip": "172.118.10.111", "protocol": [{"vport": ["1231", "1235"], "protocol": "icmp"}]}], "active-nodest": "enable", "lan-to-lan": ["1.1.1.1/24"], "priority": "3", "ip-version": "ipv4", "session-timeout": {"udp": "300", "icmp": "300", "generic": "300", "tcp-unassured": "300", "tcp-established": "4000", "udp-stream": "300", "tcp-fin-wait": "300", "tcp-wait": "300", "icmpv6": "300", "tcp-last-ack": "300", "tcp-close": "300", "tcp-syn-sent": "300", "tcp-close-wait": "300", "tcp-syn-recv": "300"}, "session-timeout-mode": "service", "keep-backup": {"real": "enable", "service": "enable"}, "real": [{"status": "enable", "description": "test slb real", "backup": "2", "id": "1", "rport": "5105", "graceful-shutdown": "enable"}], "description": "test slb", "lb-method": "dp", "nat-mode": "lan-to-lan", "dynamic-filter": [{"type": "exclude", "id": "1"}], "session-sync": "persistence", "name": "test_ipv4", "filter": [{"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1231", "dip": "172.118.10.111/32", "id": "2"}, {"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1235", "dip": "172.118.10.111/32", "id": "3"}, {"status": "enable", "sip": "1.1.1.1/24", "protocol": "tcp", "description": "test filter", "dport": "8198", "dip": "2.2.2.2/24", "sport": "5105", "type": "exclude", "id": "1"}], "snatip": ["1.1.1.1"], "fail-skip": "all", "backup": [{"partial-threshold": "3", "back-inservice": "3", "backup": "test"}], "health-check": ["100"]}' https://192.168.214.185:9443/prestapi/v2/conf/slb/test_ipv4
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"filter": [{"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1231", "dip": "2001:0db8:85a3:0000:0000:8a2e:0370:7334/32", "id": "1"}], "vip": [{"ip": "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "protocol": [{"vport": ["1231"], "protocol": "icmp"}]}], "ip-version": "ipv6", "name": "test_ipv6", "sticky": {"destination-subnet6": "0000:0000:0000:0001::", "source-subnet6": "0000:0000:0000:0001::"}}' https://192.168.214.185:9443/prestapi/v2/conf/slb/test_ipv6
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "hc-condition": "any", "fail-action": "inactive-vips", "session-reset": "active", "dynamic-proximity": [{"ratio": "3", "name": "test"}], "sticky": {"destination-subnet": "255.255.255.0", "source-subnet": "255.255.255.0", "time": "300"}, "vip": [{"ip": "172.118.10.111", "protocol": [{"vport": ["1231", "1235"], "protocol": "icmp"}]}], "active-nodest": "enable", "lan-to-lan": ["1.1.1.1/24"], "priority": "3", "ip-version": "ipv4", "session-timeout": {"udp": "300", "icmp": "300", "generic": "300", "tcp-unassured": "300", "tcp-established": "4000", "udp-stream": "300", "tcp-fin-wait": "300", "tcp-wait": "300", "icmpv6": "300", "tcp-last-ack": "300", "tcp-close": "300", "tcp-syn-sent": "300", "tcp-close-wait": "300", "tcp-syn-recv": "300"}, "session-timeout-mode": "service", "keep-backup": {"real": "enable", "service": "enable"}, "real": [{"status": "enable", "description": "test slb real", "backup": "2", "id": "1", "rport": "5105", "graceful-shutdown": "enable"}], "description": "test slb", "lb-method": "dp", "nat-mode": "lan-to-lan", "dynamic-filter": [{"type": "exclude", "id": "1"}], "session-sync": "persistence", "name": "test_ipv4", "filter": [{"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1231", "dip": "172.118.10.111/32", "id": "2"}, {"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1235", "dip": "172.118.10.111/32", "id": "3"}, {"status": "enable", "sip": "1.1.1.1/24", "protocol": "tcp", "description": "test filter", "dport": "8198", "dip": "2.2.2.2/24", "sport": "5105", "type": "exclude", "id": "1"}], "snatip": ["1.1.1.1"], "fail-skip": "all", "backup": [{"partial-threshold": "3", "back-inservice": "3", "backup": "test"}], "health-check": ["100"]}' https://192.168.214.185:9443/prestapi/v2/conf/slb/test_ipv4
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"filter": [{"status": "enable", "sip": "0.0.0.0/0", "protocol": "icmp", "type": "include", "dport": "1231", "dip": "2001:0db8:85a3:0000:0000:8a2e:0370:7334/32", "id": "1"}], "vip": [{"ip": "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "protocol": [{"vport": ["1231"], "protocol": "icmp"}]}], "ip-version": "ipv6", "name": "test_ipv6", "sticky": {"destination-subnet6": "0000:0000:0000:0001::", "source-subnet6": "0000:0000:0000:0001::"}}' https://192.168.214.185:9443/prestapi/v2/conf/slb/test_ipv6
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "load-timeout": "65535", "system": {"contact": "admin@piolink.com", "name": "Piolink", "location": "Korea"}, "community": [{"policy": "read-write", "name": "piolink", "limit-oid": ["1.3.6.1.2.1.7", "1.3.6.1.2.1.8"]}], "rmon": {"alarm": [{"interval": "100", "rising": {"threshold": "1", "event": "30"}, "owner": "piolink7", "falling": {"threshold": "2", "event": "30"}, "variable-oid": "1.3.6.1.2.1.16.1.1.1.4.10", "sample-type": "delta", "id": "10", "startup-alarm": "rising"}], "statistics": [{"owner": "piolink1", "id": "10", "port": "ge1"}], "history": [{"owner": "piolink3", "buckets": "10", "interval": "1000", "id": "20", "port": "ge3"}], "trap-host": [{"ip": "1.1.1.2", "community": "rmon1"}], "event": [{"owner": "piolink5", "type": "log", "id": "30", "description": "testing1"}]}, "user": [{"policy": "read-only", "name": "test1", "sha-passwd": "tester123!@#"}], "trap": {"dom-voltage": "enable", "temperature": "enable", "power": "enable", "link-up": "enable", "dom-tx-power": "enable", "failover": "enable", "management-cpu": "enable", "management-memory": "enable", "cold-start": "enable", "packet-cpu": "enable", "host": [{"engine-id": "700007E5804089071BC6D10A41", "version": "1", "description": "test1", "agent-addr": "1.1.1.1", "ip": "1.1.1.1", "aes-passwd": "Admin123$", "sha-passwd": "Admin123$", "community": "test1", "user": "piolink123"}], "dom-rx-power": "enable", "fan": "enable", "dom-all": "disable", "packet-memory": "enable", "dom-temperature": "enable", "link-down": "enable", "log_storage": "enable", "health-check": "enable", "dom-current": "enable"}}' https://192.168.214.185:9443/prestapi/v2/conf/snmp
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/snmp
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"ip": "1.1.1.1/24", "id": "1", "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/sp-filter/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"description": "test", "id": "1", "sp-filter": ["1", "2"]}' https://192.168.214.185:9443/prestapi/v2/conf/sp-filter-group/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"mode": "copy-cli", "name": "test", "copy-crt": "-----BEGIN CERTIFICATE-----MIIBYDCCAQUCFFOYlGFF01OQbbjfHBrxbhxdkEe4MAoGCCqGSM49BAMCMDIxETAPBgNVBAMMCHRlc3QuY29tMRAwDgYDVQQKDAdwaW9saW5rMQswCQYDVQQGEwJrcjAeFw0yNDAyMjAwMTAyNThaFw0yNTAyMTkwMTAyNThaMDIxETAPBgNVBAMMCHRlc3QuY29tMRAwDgYDVQQKDAdwaW9saW5rMQswCQYDVQQGEwJrcjBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCxiyM97t922iIR5M4/RJvKBY1c73vbFA9apFeu3Li9Z6+0peMNaCjLVIiv2TzuKXv+OIyBdNs0B1Hwg7c0pg2MwCgYIKoZIzj0EAwIDSQAwRgIhAPFGDWY0deCZVDYzfBIOObQEVYfgu90G0TZa0KLpbXrKAiEA1DIA3dR3XeMcuDz4Zdeu8LPRxcNOU/uYWS7yVhRZwCg=-----END CERTIFICATE-----"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/ca-certificate/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"name": "test", "locality": "test3", "country": "kr", "state": "test2", "organization-unit": "test", "ca-certificates": "test", "cname": "test1", "expiration": "400", "key": "test_key", "organization": "piolink", "import": {"tftp": "192.168.226.71:/test/test", "tftp-port": "69", "protocol": "tftp"}, "email": "test@piolink.com", "mode": "import"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/certificate/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"trusted-certificate-text": "test", "mode": "ignore", "verify-depth": "3", "id": "1", "import-crt": "192.168.226.71:/test/test"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/client-authentication/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"mode": "copy-cli", "name": "test", "copy-crt": "-----BEGIN CERTIFICATE-----MIIBYDCCAQUCFFOYlGFF01OQbbjfHBrxbhxdkEe4MAoGCCqGSM49BAMCMDIxETAPBgNVBAMMCHRlc3QuY29tMRAwDgYDVQQKDAdwaW9saW5rMQswCQYDVQQGEwJrcjAeFw0yNDAyMjAwMTAyNThaFw0yNTAyMTkwMTAyNThaMDIxETAPBgNVBAMMCHRlc3QuY29tMRAwDgYDVQQKDAdwaW9saW5rMQswCQYDVQQGEwJrcjBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCxiyM97t922iIR5M4/RJvKBY1c73vbFA9apFeu3Li9Z6+0peMNaCjLVIiv2TzuKXv+OIyBdNs0B1Hwg7c0pg2MwCgYIKoZIzj0EAwIDSQAwRgIhAPFGDWY0deCZVDYzfBIOObQEVYfgu90G0TZa0KLpbXrKAiEA1DIA3dR3XeMcuDz4Zdeu8LPRxcNOU/uYWS7yVhRZwCg=-----END CERTIFICATE-----"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/ca-certificate/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"name": "test", "locality": "test3", "country": "kr", "state": "test2", "organization-unit": "test", "ca-certificates": "test", "cname": "test1", "expiration": "400", "key": "test_key", "organization": "piolink", "import": {"tftp": "192.168.226.71:/test/test", "tftp-port": "69", "protocol": "tftp"}, "email": "test@piolink.com", "mode": "import"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/certificate/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"trusted-certificate-text": "test", "mode": "ignore", "verify-depth": "3", "id": "1", "import-crt": "192.168.226.71:/test/test"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/client-authentication/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"length": "4096", "name": "test_key", "passphrase": "test1234", "encryption": "des", "type": "rsa", "curve": "secp384r1", "mode": "generate"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/key/test_key
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"verify": "enable", "uri": "test", "id": "1", "resolver": "1.1.1.1", "import-crt": "192.168.226.71:test/test"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/ocsp-stapling/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"client-authentication": "1", "certificate": "test", "prefer-server-cipher": "enable", "server-authentication": "1", "hsts": {"status": "enable", "subdomain": "enable", "max-age": "3153"}, "ciphers": "@SPEED", "curve": ["secp521r1", "prime256v1"], "cipher-protocols": ["TLSv1.1", "DTLSv1", "SSLv3"], "ocsp-stapling": "1", "session-resumption": {"status": "enable", "pool-size": "3000", "timeout": "360"}, "dhparam": "2048", "sni": {"status": "enable", "server-name": "test1"}, "type": "backend", "id": "1", "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/profile/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "filter": [{"status": "enable", "sip": "1.1.1.1/24", "dport": "3165", "type": "exclude", "sport": "3065", "dip": "10.10.10.10/24", "id": "2"}], "name": "test", "dest": {"id": "1", "ip": "1.1.1.1", "type": "advl7slb", "port": "3065", "name": "test"}, "priority": "30", "ip-version": "ipv4", "profile": "1"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/proxy/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"server-name": "test", "verify-depth": "2", "id": "1", "import-crt": "192.168.226.71:/test/test"}' https://192.168.214.185:9443/prestapi/v2/conf/ssl/server-authentication/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"priority": "10", "status": "enable", "bridge-hello-time": "3", "bpdu-guard": "enable", "bridge-forward-delay": "10", "port": [{"priority": "10", "bpdu-filter": "enable", "name": "ge1", "portfast": "enable", "path-cost": "200", "root-guard": "enable", "bpdu-guard": "enable"}, {"name": "ge2"}, {"name": "ge3"}, {"name": "ge4"}, {"name": "ge5"}, {"name": "ge6"}, {"name": "ge7"}, {"name": "ge8"}, {"name": "xg1"}, {"name": "xg2"}, {"name": "xg3"}, {"name": "xg4"}, {"name": "xg5"}, {"name": "xg6"}, {"name": "xg7"}, {"name": "xg8"}, {"name": "xg9"}, {"name": "xg10"}, {"name": "xg11"}, {"name": "xg12"}, {"name": "xg13"}, {"name": "xg14"}, {"name": "xg15"}, {"name": "xg16"}], "bridge-max-age": "10"}' https://192.168.214.185:9443/prestapi/v2/conf/stp
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"priority": "10", "status": "enable", "bridge-hello-time": "3", "bpdu-guard": "enable", "bridge-forward-delay": "10", "port": [{"priority": "10", "bpdu-filter": "enable", "name": "ge1", "portfast": "enable", "path-cost": "200", "root-guard": "enable", "bpdu-guard": "enable"}, {"name": "ge2"}, {"name": "ge3"}, {"name": "ge4"}, {"name": "ge5"}, {"name": "ge6"}, {"name": "ge7"}, {"name": "ge8"}, {"name": "xg1"}, {"name": "xg2"}, {"name": "xg3"}, {"name": "xg4"}, {"name": "xg5"}, {"name": "xg6"}, {"name": "xg7"}, {"name": "xg8"}, {"name": "xg9"}, {"name": "xg10"}, {"name": "xg11"}, {"name": "xg12"}, {"name": "xg13"}, {"name": "xg14"}, {"name": "xg15"}, {"name": "xg16"}], "bridge-max-age": "10"}' https://192.168.214.185:9443/prestapi/v2/conf/stp
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"port": [{"name": "ge1"}, {"name": "ge2"}, {"name": "ge3"}, {"name": "ge4"}, {"name": "ge5"}, {"name": "ge6"}, {"name": "ge7"}, {"name": "ge8"}, {"name": "xg1"}, {"name": "xg2"}, {"name": "xg3"}, {"name": "xg4"}, {"name": "xg5"}, {"name": "xg6"}, {"name": "xg7"}, {"name": "xg8"}, {"name": "xg9"}, {"name": "xg10"}, {"name": "xg11"}, {"name": "xg12"}, {"name": "xg13"}, {"name": "xg14"}, {"name": "xg15"}, {"name": "xg16"}]}' https://192.168.214.185:9443/prestapi/v2/conf/stp
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "web": "enable", "root-authentication": "enable", "console": "enable", "log": "enable", "service": "test", "secret": "admin1234", "telnet": "enable", "server": [{"status": "disable", "ip": "1.2.3.4", "id": "1", "description": "testing1"}, {"status": "enable", "ip": "4.5.6.7", "id": "2", "description": "testing2"}], "authentication": "enable", "ssh": "enable", "timeout": "5", "prest-api": "enable", "accounting": "enable", "authorization": "enable"}' https://192.168.214.185:9443/prestapi/v2/conf/tacacs-plus
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/tacacs-plus
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"congestion-control": {"ecn": "both", "window-scaling": "disable", "timestamps": "disable"}, "recovery": {"frto": "basic", "dsack": "disable", "reordering": "5", "sack": "disable", "retransmission": "10"}, "socket-buffer": {"receive-buffer": "100000", "dynamic-receive": "disable", "send-buffer": "20000"}}' https://192.168.214.185:9443/prestapi/v2/conf/tcp-tuning
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/tcp-tuning
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"default-mgmt-ip": "1.1.1.1/24", "status": "enable", "name": "test", "mcpu": ["1"], "vlan": ["1000"], "rate-limit": "10Gbps", "profile": "test", "swap": "256", "memory": "3", "disk": "5", "cpu": ["1"], "socket": "1"}' https://192.168.219.30:9443/prestapi/v2/conf/vinstance/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"default-mgmt-ip": "1.1.1.1/24", "status": "enable", "name": "test", "mcpu": ["1"], "vlan": ["1000"], "rate-limit": "10Gbps", "profile": "test", "swap": "256", "memory": "3", "disk": "5", "cpu": ["1"], "socket": "1"}' https://192.168.219.30:9443/prestapi/v2/conf/vinstance/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"profile": "test", "path": "http://test.piolink.com/k2/vINSTANCE/PLOS-PASK-vINSTANCE-v2.2.6.3.2", "hash": "f89dccf185209c3a8e91862a3bdf91b2045ea3ea2298547f7b976fd978f0b8e1e5997d2ebf7b7a2e8b8aec5843435c3d532d53e6ae1017f607f2fe59ab34ae2b"}' https://192.168.219.30:9443/prestapi/v2/conf/vinstance-os/test
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"length": "50", "timeout": "30"}' https://192.168.214.185:9443/prestapi/v2/conf/terminal
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/terminal
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"length": "50", "timeout": "30"}' https://192.168.214.185:9443/prestapi/v2/conf/terminal
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/terminal
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"timezone": "UTC-03:00"}' https://192.168.214.185:9443/prestapi/v2/conf/timezone
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/timezone
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"load-balance": "src-dst-ip", "num": "1", "port": ["ge1", "ge2"], "description": "testing"}' https://192.168.214.185:9443/prestapi/v2/conf/trunk/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"channel-group": "1", "port": [{"port": "ge1", "weight": "1"}], "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/trunk-active-backup/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"channel-group": "1", "port": [{"port": "ge1", "weight": "1"}], "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/trunk-active-backup/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"geneve": [{"remote-ip": "172.16.11.10", "port": "6081", "vni": "1001", "name": "gnv1"}], "ipip": [{"interface": "v1600", "remote-ip": "172.10.0.12", "name": "ipip0", "local-ip": "172.10.0.2"}], "pppoe": [{"interface": "test_vlan", "status": "disable", "password": "test1234", "name": "testing", "user": "test"}], "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/tunnel
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"name": "test_vlan", "tbm": "enable", "port": [{"type": "tagged", "name": "ge1"}], "vid": "3200", "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/vlan/test_vlan
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"log_storage": {"threshold": "100"}, "cpu": {"threshold": "100"}, "memory": {"threshold": "100"}}' https://192.168.214.185:9443/prestapi/v2/conf/watch-system
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{}' https://192.168.214.185:9443/prestapi/v2/conf/watch-system
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"domain": "google", "id": "1", "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/domain-filter/1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"ip": "1.1.1.1", "id": "5", "description": "test"}' https://192.168.214.185:9443/prestapi/v2/conf/access-ip/5
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "flow-ctrl": "off", "mdi-mdix": "mdi", "name": "ge1", "duplex": "full", "packet-buffer": "--", "speed": "100", "auto-nego": "disable", "sfp-mode": "--"}' https://192.168.214.185:9443/prestapi/v2/conf/port/ge1
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "enable", "flow-ctrl": "off", "mdi-mdix": "mdi", "name": "ge1", "duplex": "full", "packet-buffer": "--", "speed": "100", "auto-nego": "disable", "sfp-mode": "--"}' https://192.168.214.185:9443/prestapi/v2/conf/port/ge1
Traceback (most recent call last):
  File "/tmp/ansible_pask_port_payload_4F4jEq/ansible_pask_port_payload.zip/ansible_collections/piolink/pask/plugins/module_utils/pask_module.py", line 28, in applicator
    result = func(self, *args, **kwargs)
  File "/tmp/ansible_pask_port_payload_4F4jEq/ansible_pask_port_payload.zip/ansible_collections/piolink/pask/plugins/modules/pask_port.py", line 57, in run
UnboundLocalError: local variable 'default_values' referenced before assignment
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "disable", "sp-filter-group": ["1", "2"], "description": "30", "weight": "50", "pool-size": "100", "rip": "172.16.123.24", "pool-srcmask": "14", "pool-age": "200", "interface": "lan", "mac": "00:06:c5:96:01:21", "surge-base-thr": "10", "graceful-shutdown": "enable", "upload-bandwidth": "100000", "device": [{"passwd": "admin", "ip": "8.8.8.8", "port": "8231", "user": "bang"}], "download-bandwidth": "200000", "id": "101", "rport": "5544", "preemption": "disable", "name": "bang", "ssl-rport": "8544", "svcip": "6.6.6.6", "sp-filter": ["1", "2"], "priority": "30", "src-natip": ["5.4.3.2", "1.2.3.4"], "nat": [{"status": "disable", "sip": "1.1.1.5/24", "protocol": "udp", "type": "one-to-one-nat", "internal-ip": "1.1.10.2", "external-ip": "1.1.10.1", "natport": ["8011", "8012"], "priority": "10", "natip": ["1.1.1.7", "1.1.1.8"], "dport": "9032", "sport": "8046", "dip": "1.1.1.6/24", "id": "10"}], "pool-reuse": "300", "max-connection": "12", "surge-upper": "30", "backup": "100", "health-check": [{"id": "1"}, {"id": "2"}], "domain-filter": ["1", "2"]}' https://192.168.214.185:9443/prestapi/v2/conf/real/101
curl --user root:admin -k -X PUT -H 'Content-Type: application/json'  --data  '{"status": "disable", "sp-filter-group": ["1", "2"], "description": "30", "weight": "50", "pool-size": "100", "rip": "172.16.123.24", "pool-srcmask": "14", "pool-age": "200", "interface": "lan", "mac": "00:06:c5:96:01:21", "surge-base-thr": "10", "graceful-shutdown": "enable", "upload-bandwidth": "100000", "device": [{"passwd": "admin", "ip": "8.8.8.8", "port": "8231", "user": "bang"}], "download-bandwidth": "200000", "id": "101", "rport": "5544", "preemption": "disable", "name": "bang", "ssl-rport": "8544", "svcip": "6.6.6.6", "sp-filter": ["1", "2"], "priority": "30", "src-natip": ["5.4.3.2", "1.2.3.4"], "nat": [{"status": "disable", "sip": "1.1.1.5/24", "protocol": "udp", "type": "one-to-one-nat", "internal-ip": "1.1.10.2", "external-ip": "1.1.10.1", "natport": ["8011", "8012"], "priority": "10", "natip": ["1.1.1.7", "1.1.1.8"], "dport": "9032", "sport": "8046", "dip": "1.1.1.6/24", "id": "10"}], "pool-reuse": "300", "max-connection": "12", "surge-upper": "30", "backup": "100", "health-check": [{"id": "1"}, {"id": "2"}], "domain-filter": ["1", "2"]}' https://192.168.214.185:9443/prestapi/v2/conf/real/101
