PAN-OS - Delete Static Routes

This playbook deletes a PAN-OS static route from the PAN-OS instance.

PAN-OS by Palo Alto Networks · 8 tasks · 3 inputs · 0 outputs

Details

IDPAN-OS - Delete Static Routes
From Version5.0.0
Tasks8

README

Deletes a PAN-OS static route from the PAN-OS instance.

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

  • PanoramaCommitConfiguration

Integrations

This playbook does not use any integrations.

Scripts

This playbook does not use any scripts.

Commands

  • pan-os-list-static-routes
  • pan-os-delete-static-route

Playbook Inputs


Name Description Default Value Required
virtual_router_name The name of the virtual router to configure the static routes for. - Required
route_name The name to identify the static route (up to 31 characters). The name is case-sensitive and must be unique. Can include, letters, numbers, spaces, hyphens, and underscores. - Required
AutoCommit Whether to auto-commit the configuration to PAN-OS. Can be, “Yes” or “No”. No Optional

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


PAN-OS_Delete_Static_Routes

Inputs

  • virtual_router_name — Name of the virtual router to configure the static routes for.
  • route_name — Enter a name to identify the static route (up to 31 characters). The name is case-sensitive and must be unique. Use only letters, numbers, spaces, hyphens, and underscores.
  • AutoCommit — This input established whether to auto-commit the configuration to PAN-OS. Specify Yes/No.

Commands used

pan-os-delete-static-route pan-os-list-static-routes

Flowchart

yes yes Start Start Done Done Auto commit configuration? Auto commit configuration? Route exists? Route exists? Manually commit PAN-OS configuration Manually commit PAN-OS co... PAN-OS - delete static route - pan-os-delete-static-route PAN-OS - delete static route pan-os-delete-static-route PAN-OS - list static routes - pan-os-list-static-routes PAN-OS - list static routes pan-os-list-static-routes PAN-OS Commit Configuration - PAN-OS Commit Configuration PAN-OS Commit Configuration PAN-OS Commit Configuration
id: PAN-OS - Delete Static Routes
version: -1
fromversion: 5.0.0
name: PAN-OS - Delete Static Routes
description: This playbook deletes a PAN-OS static route from the PAN-OS instance.
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: 112c0782-0355-4935-84a2-7dd2d4b33be7
    type: start
    task:
      id: 112c0782-0355-4935-84a2-7dd2d4b33be7
      version: -1
      name: ""
      description: ""
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "31"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 280,
          "y": -210
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "7":
    id: "7"
    taskid: 172ccb68-eb94-4998-8ddb-ae03b9440af7
    type: title
    task:
      id: 172ccb68-eb94-4998-8ddb-ae03b9440af7
      version: -1
      name: Done
      description: ""
      type: title
      iscommand: false
      brand: Builtin
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 280,
          "y": 770
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "11":
    id: "11"
    taskid: 90c8b22c-6bf3-4340-8eb4-da045b1d1768
    type: condition
    task:
      id: 90c8b22c-6bf3-4340-8eb4-da045b1d1768
      version: -1
      name: Auto commit configuration?
      description: ""
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      '#default#':
      - "29"
      "yes":
      - "32"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isEqualString
          left:
            value:
              complex:
                root: inputs.AutoCommit
                transformers:
                - operator: toLowerCase
            iscontext: true
          right:
            value:
              simple: "yes"
    view: |-
      {
        "position": {
          "x": 740,
          "y": 430
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "27":
    id: "27"
    taskid: f0c8e362-f349-4af5-828f-c0a618395993
    type: condition
    task:
      id: f0c8e362-f349-4af5-828f-c0a618395993
      version: -1
      name: Route exists?
      description: ""
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      '#default#':
      - "7"
      "yes":
      - "30"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isEqualString
          left:
            value:
              complex:
                root: inputs.route_name
            iscontext: true
          right:
            value:
              simple: Panorama.StaticRoutes.Name
            iscontext: true
    view: |-
      {
        "position": {
          "x": 280,
          "y": 100
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "29":
    id: "29"
    taskid: 63fb434d-2d3a-449f-819a-6250dbe667eb
    type: regular
    task:
      id: 63fb434d-2d3a-449f-819a-6250dbe667eb
      version: -1
      name: Manually commit PAN-OS configuration
      description: ""
      type: regular
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "7"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 960,
          "y": 600
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "30":
    id: "30"
    taskid: 69933a31-e392-4d8c-8749-6f4265d6ea66
    type: regular
    task:
      id: 69933a31-e392-4d8c-8749-6f4265d6ea66
      version: -1
      name: PAN-OS - delete static route
      description: Deletes a static route.
      script: '|||pan-os-delete-static-route'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "11"
    scriptarguments:
      route_name:
        complex:
          root: inputs.route_name
      template: {}
      virtual_router:
        complex:
          root: inputs.virtual_router_name
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 740,
          "y": 270
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "31":
    id: "31"
    taskid: 19aba921-7ed7-4f1e-8729-0b44e20af5c7
    type: regular
    task:
      id: 19aba921-7ed7-4f1e-8729-0b44e20af5c7
      version: -1
      name: PAN-OS - list static routes
      description: Lists the static routes for a virtual router.
      script: '|||pan-os-list-static-routes'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "27"
    scriptarguments:
      show_uncommitted:
        simple: "true"
      template: {}
      virtual_router:
        complex:
          root: inputs.virtual_router_name
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 280,
          "y": -70
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
  "32":
    id: "32"
    taskid: b9c8b2c7-1d39-493c-8fbb-a0dde71c372a
    type: playbook
    task:
      id: b9c8b2c7-1d39-493c-8fbb-a0dde71c372a
      version: -1
      name: PAN-OS Commit Configuration
      playbookName: PAN-OS Commit Configuration
      description: ""
      type: playbook
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "7"
    separatecontext: true
    view: |-
      {
        "position": {
          "x": 520,
          "y": 600
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
view: |-
  {
    "linkLabelsPosition": {
      "11_28_yes": 0.57,
      "11_29_#default#": 0.59,
      "27_7_#default#": 0.34
    },
    "paper": {
      "dimensions": {
        "height": 1045,
        "width": 1060,
        "x": 280,
        "y": -210
      }
    }
  }
inputs:
- key: virtual_router_name
  value: {}
  required: true
  description: Name of the virtual router to configure the static routes for.
- key: route_name
  value: {}
  required: true
  description: Enter a name to identify the static route (up to 31 characters). The name is case-sensitive and must be unique. Use only letters, numbers, spaces, hyphens, and underscores.
- key: AutoCommit
  value:
    simple: "No"
  required: false
  description: This input established whether to auto-commit the configuration to PAN-OS. Specify Yes/No.
outputs: []
tests:
- No test
supportedModules:
- agentix
- xsiam