vinfra cluster traffic-type set

Modify traffic type parameters:

usage: vinfra cluster traffic-type set [--name <name>] [--port <port>]
                                       [--inbound-allow-list <addresses> |
                                       --add-inbound-allow-list <addresses> |
                                       --del-inbound-allow-list <addresses> |
                                       --clear-inbound-allow-list]
                                       [--inbound-deny-list <addresses> |
                                       --add-inbound-deny-list <addresses> |
                                       --del-inbound-deny-list <addresses> |
                                       --clear-inbound-deny-list]
                                       <traffic-type>
--name <name>
A new name for the traffic type
--port <port>
A new port for the traffic type
--inbound-allow-list <addresses>
A comma-separated list of IP addresses (overwrites the current inbound allow rules)
--add-inbound-allow-list <addresses>
A comma-separated list of IP addresses (adds the specified inbound allow rules)
--del-inbound-allow-list <addresses>
A comma-separated list of IP addresses (removes the specified inbound allow rules)
--clear-inbound-allow-list
Clear all inbound allow rules
--inbound-deny-list <addresses>
A comma-separated list of IP addresses (overwrites the current inbound deny rules)
--add-inbound-deny-list <addresses>
A comma-separated list of IP addresses (adds the specified inbound deny rules)
--del-inbound-deny-list <addresses>
A comma-separated list of IP addresses (removes the specified inbound deny rules)
--clear-inbound-deny-list <addresses>
Clear all inbound deny rules
<traffic-type>
Traffic type name

Example:

# vinfra cluster traffic-type set "MyTrafficType" \
--name "MyOtherTrafficType" --port 6901
+---------+--------------------------------------+
| Field   | Value                                |
+---------+--------------------------------------+
| task_id | 33222e65-eb27-4181-ba23-0ebcd43766d7 |
+---------+--------------------------------------+

This command creates a task to rename the traffic type MyTrafficType to MyOtherTrafficType and change its port to 6901.

Task outcome:

# vinfra task show 33222e65-eb27-4181-ba23-0ebcd43766d7
+---------+---------------------------------------------------------+
| Field   | Value                                                   |
+---------+---------------------------------------------------------+
| details |                                                         |
| name    | backend.presentation.network.roles.tasks.RoleChangeTask |
| result  | exclusive: false                                        |
|         | hidden: false                                           |
|         | inbound_allow_list: []                                  |
|         | inbound_deny_list: []                                   |
|         | name: MyOtherTrafficType                                |
|         | port: 6901                                              |
|         | type: custom                                            |
| state   | success                                                 |
| task_id | 33222e65-eb27-4181-ba23-0ebcd43766d7                    |
+---------+---------------------------------------------------------+