NetStacksNetStacks

Method of Procedures

Define structured operational procedures with approval workflows.

Overview

Method of Procedures (MOPs) define step-by-step operational tasks with built-in approval workflows, rollback capabilities, and execution tracking.

  • Define steps with success/failure paths
  • Require approval before execution
  • Include rollback commands
  • Track execution history

MOP Steps

Step TypeDescription
SSH CommandExecute command on device
DelayWait specified time
ValidationRun Python validation script
HTTP RequestCall external API
EmailSend notification
LogRecord message to MOP log

Creating MOPs

  1. Navigate to Automation → MOPs
  2. Click New MOP
  3. Enter name and description
  4. Add steps using visual builder or YAML
  5. Define rollback steps
  6. Configure approval requirements
  7. Click Save
name: BGP Maintenance
steps:
  - type: ssh_command
    name: Disable BGP peer
    command: "neighbor {{ peer_ip }} shutdown"
    rollback: "no neighbor {{ peer_ip }} shutdown"
  - type: delay
    seconds: 30
  - type: validation
    script: verify_bgp_down.py
  - type: ssh_command
    name: Apply changes
    command: "{{ maintenance_commands }}"
  - type: ssh_command
    name: Re-enable BGP
    command: "no neighbor {{ peer_ip }} shutdown"