dne-security-code
dne-security-code copied to clipboard
ise_mission.py In the function ‘post_to_ise’ the payload is created in an extremely non-pythonic way. The nice thing is that there is a function in the code that can do it...
Unused imports --> from inspect import currentframe
Unused imports ---> import webexteamssdk from crayons import blue, red
not used: import webexteamssdk from crayons import blue
‘filepath’ not used ---> def write_events_to_file(filepath, ampevents): with open(events_path, "w") as file: json.dump(ampevents, file, indent=2)
variable "payload" is not used in "def post_to_amp" function
amp_custom_detect.py import webexteamssdk from crayons import green
changed to all samples after 2010-07-18T21:39:13Z seemed to solve issue with no samples returned
https://developer.cisco.com/learning/devnet-express/devnet-express-security-v1-1/dne-firepower-v11/fdm-restapi-handson-v-1-1/step/4 $ python3 fdm_create_networks.py should be (otherwise file not found error): $ python3 fdm_create_network.py
They are a little boring today and could use some spicing up! Additionally, the contents need to be updated to reflect the `v1.1` repo restructuring, coding patterns (use the `env_lab.py`...