upsertPhysicalInterface

The upsertPhysicalInterface operation handles configuration related to PhysicalInterface model. 

Data Parameters

Parameter Required Type Description
version False string A unique string version assigned by the system when the object is created or modified. No assumption can be made on the format or content of this identifier. The identifier must be provided whenever attempting to modify/delete an existing object. As the version will change every time the object is modified, the value provided in this identifier must match exactly what is present in the system or the request will be rejected.
name False string An optional ASCII string, from 0 to 48 characters, representing the name of the interface. The string can only include lower case characters (a-z), numbers (0-9), underscore (), dot (.), and plus/minus (+,-). The name can only start with an alpha numeric character.
Field level constraints: length must be between 0 and 48 (inclusive), must match pattern (^$)|(^[a-z0-9
][ a-z0-9_.+-]*$), cannot have HTML. (Note: Additional constraints might exist)
description False string An optional UTF-8 sting, from 0 to 200 characters. The string cannot include HTML tags, semi-colons(;), or carriage returns.
Field level constraints: length must be between 0 and 200 (inclusive), cannot have HTML, must match pattern ^((?!;).)*$. (Note: Additional constraints might exist)
hardwareName False string A mandatory UTF-8 string for the PhysicalInterfaces and SubInterfaces, which normally specifies the type of Interface along with the Interface number. The string cannot contain HTML tags.
Field level constraints: must match pattern ^((?!;).)*$, cannot have HTML. (Note: Additional constraints might exist)
ipv4 False object An optional IPv4 object assigned to an interface in Firepower device manager. This object specifies Interface configuration for an IPv4 address.
ipv6 False object An optional IPv6 object assigned to an interface in Firepower device manager. This object specifies Interface configuration for an IPv6 address.
managementOnly False boolean An optional Boolean value, TRUE or FALSE (default value). The TRUE value indicates that the interface is used for management only. FALSE indicates that interface is not used as a management purpose.
linkState False string An enum value that specifies whether the Physical Interface link state is UP or DOWN (the default). Link state of an interface is the operational status/running status of the interface. The values can be one of the following.
UP - Specifies whether the device is operationally UP.
DOWN - Specifies whether the device is operationally DOWN.
mtu False integer A mandatory Integer value, from 64 bytes to 9198 bytes, with a default value being set to 1500. Maximum Transfer Unit (MTU) is the size of the largest network layer protocol unit that can be communicated in a single network transaction.
Field level constraints: cannot be null, must be between 64 and 9198 (inclusive). (Note: Additional constraints might exist)
enabled False boolean A mandatory Boolean value, TRUE or FALSE (the default), specifies the administrative status of the Interface. The TRUE value enables the administrative status on the device. The value FALSE disables the administrative status on the device.
Field level constraints: cannot be null. (Note: Additional constraints might exist)
speedType False string An enum value that specifies the Interface Speed Type, where AUTO is the default .Values can be one of the following.
AUTO - Enable auto-negotiation for this interface.
TEN - Force 10 Mbps.
HUNDRED - Force 100 Mbps.
THOUSAND - Force 1 Gbps.
TEN_THOUSAND - Force 10 Gbps.
NO_NEGOTIATE - Do not negotiate speed.
IGNORE - Do not configure Interface speed.
duplexType False string An enum value that specifies the Interface Duplex Type, where AUTO is the default. Values can be one of the following .
AUTO - Automatically selects either FULL or HALF duplex.
HALF - Selects HALF duplex which enables only one way communication.
FULL - Selects FULL duplex setting which enables both way communication at the same time.
IGNORE - No duplex configuration needed.
subInterfaces False [object] A set of subInterfaces configured. A subInterface is a logical interface that uses the parent physical interface for moving the data.
Allowed types are: [SubInterface]
managementInterface False boolean An optional Boolean value, TRUE or FALSE (the default). The TRUE value indicates that the interface is a Management Interface. The value FALSE indicates that the interface is not a Management Interface.
tenGigabitInterface False boolean An optional Boolean value, TRUE or FALSE (the default). The TRUE value indicates that the interface is a Ten Gigabit Interface. The value FALSE indicates that the interface is not a Ten Gigabit Interface.
gigabitInterface False boolean An optional Boolean value, TRUE or FALSE (the default). The TRUE value indicates that the interface is a Gigabit Interface. The value FALSE indicates that the interface is not a Gigabit Interface.
id False string A unique string identifier assigned by the system when the object is created. No assumption can be made on the format or content of this identifier. The identifier must be provided whenever attempting to modify/delete (or reference) an existing object.
Field level constraints: must match pattern ^((?!;).)*$, cannot have HTML. (Note: Additional constraints might exist)
type False string A UTF8 string, all letters lower-case, that represents the class-type. This corresponds to the class name.

Query Parameters

Parameter Required Type Description
filter False string Default filtering for Upsert operation is done by name.

Example

- name: Execute 'upsertPhysicalInterface' operation
  ftd_configuration:
    operation: "upsertPhysicalInterface"
    data:
        version: "{{ version }}"
        name: "{{ name }}"
        description: "{{ description }}"
        hardwareName: "{{ hardware_name }}"
        ipv4: "{{ ipv4 }}"
        ipv6: "{{ ipv6 }}"
        managementOnly: "{{ management_only }}"
        linkState: "{{ link_state }}"
        mtu: "{{ mtu }}"
        enabled: "{{ enabled }}"
        speedType: "{{ speed_type }}"
        duplexType: "{{ duplex_type }}"
        subInterfaces: "{{ sub_interfaces }}"
        managementInterface: "{{ management_interface }}"
        tenGigabitInterface: "{{ ten_gigabit_interface }}"
        gigabitInterface: "{{ gigabit_interface }}"
        id: "{{ id }}"
        type: "{{ type }}"
    query_params:
        filter: "{{ filter }}"