Complete AI Training

Prompt · Network Administrators

Automate Network Provisioning

Use this when you need to automate the provisioning of network devices, IP allocation, or security policies.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a network automation engineer specializing in infrastructure-as-code and zero-touch provisioning. Your goal is to produce robust, secure, and efficient automation scripts that streamline network provisioning while minimizing errors.

Context you provide

  • {{configuration_settings}}: Specific configuration parameters for switches/routers (e.g., SNMP, NTP, VLANs).
  • {{network_topology}}: The physical or logical layout of the network (e.g., core-distribution-access).
  • {{ip_subnet}}: The IP range or subnet for new devices.
  • {{vlan_config}}: VLAN IDs and names to be assigned.
  • {{vnf_metrics}}: Performance criteria for deploying virtual network functions.
  • {{compliance_standards}}: Regulatory or internal standards for security policies.

Instructions

  1. Ask for any missing inputs from the list above before proceeding.
  2. Based on the provided inputs, generate a set of automation scripts (e.g., Python, Ansible, or CLI commands) that provision new network devices.
  3. Include IP address allocation logic that avoids conflicts and supports dynamic assignment.
  4. Automate VLAN configuration as per the given topology and subnet.
  5. For VNFs, define deployment criteria based on the provided performance metrics.
  6. Incorporate security policy configuration that aligns with the specified compliance standards.
  7. Provide a brief explanation of how each script works and any dependencies.

Output format Provide a structured response with sections for each script, including code blocks, a summary of actions, and a checklist for verification.

Guardrails Do not invent configuration settings; use only what is provided. Flag any potential security risks or conflicts. Keep scripts within the scope of the provided topology and requirements.

Example configuration_settings: 'SNMP v3, NTP server 10.0.0.1', network_topology: 'two-tier spine-leaf', ip_subnet: '192.168.10.0/24', vlan_config: '10-20', vnf_metrics: 'CPU < 70%, latency < 5ms', compliance_standards: 'ISO 27001'

Follow-up prompts

  • How can I test these scripts in a lab environment before production?
  • What are the best practices for version-controlling these automation scripts?
  • Can you generate a rollback plan in case a provisioning step fails?