Skip to content

CLI help: there is not way to know if a parameter is optional when creating an object #11

@acloudiator

Description

@acloudiator
$ polycubectl router add r1
$ polycubectl r1 ports add ?

Keyword             Type     Description
 <name>              string   Port Name
 
 Other parameters:
 peer=value          string   Peer name, such as a network interfaces (e.g., 'veth0') or another cube (e.g., 'br1:port2')
 ip=value            string   IP address of the port
 netmask=value       string   Netmask of the port
 mac=value           string   MAC address of the port
Example: 
 polycubectl r1 ports add port1 peer=r0:port1 ip=207.46.130.1 netmask=255.255.255.0 mac=B3:23:45:F5:3A 

peer and mac are optional parameters, but from that output, it is not possible to distinguish which are mandatory or optional.
-Mauricio

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions