addSubInterface

The addSubInterface operation handles configuration related to SubInterface model. 

Data Parameters

Parameter Required Type Description
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)
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.
subIntfId False integer A mandatory numeric value specifying the sub interface id, from 1 to 4294967295. The number of subinterfaces allowed depends on your platform. You cannnot change the ID after you create the subinterface.
Field level constraints: cannot be null, must be between 1 and 4294967295 (inclusive). (Note: Additional constraints might exist)
vlanId False integer An optional numeric value specifying the vlan id of the sub-interface, from 1 to 4094. This is used to tag the packets on a subinterface.
Field level constraints: must be between 1 and 4094 (inclusive). (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.

Path Parameters

Parameter Required Type Description
parentId True string

Query Parameters

Parameter Required Type Description
at False integer

Example

- name: Execute 'addSubInterface' operation
  ftd_configuration:
    operation: "addSubInterface"
    data:
        name: "{{ name }}"
        description: "{{ description }}"
        hardwareName: "{{ hardware_name }}"
        ipv4: "{{ ipv4 }}"
        ipv6: "{{ ipv6 }}"
        managementOnly: "{{ management_only }}"
        linkState: "{{ link_state }}"
        mtu: "{{ mtu }}"
        enabled: "{{ enabled }}"
        managementInterface: "{{ management_interface }}"
        tenGigabitInterface: "{{ ten_gigabit_interface }}"
        gigabitInterface: "{{ gigabit_interface }}"
        subIntfId: "{{ sub_intf_id }}"
        vlanId: "{{ vlan_id }}"
        type: "{{ type }}"
    path_params:
        parentId: "{{ parent_id }}"
    query_params:
        at: "{{ at }}"