Skip to content
Snippets Groups Projects
  • Alexey Kirillov's avatar
    d32ad10a
    qapi: net: Add query-netdev command · d32ad10a
    Alexey Kirillov authored
    
    The query-netdev command is used to get the configuration of the current
    network device backends (netdevs).
    This is the QMP analog of the HMP command "info network" but only for
    netdevs (i.e. excluding NIC and hubports).
    
    The query-netdev command returns an array of objects of the NetdevInfo
    type, which are an extension of Netdev type. It means that response can
    be used for netdev-add after small modification. This can be useful for
    recreate the same netdev configuration.
    
    Information about the network device is filled in when it is created or
    modified and is available through the NetClientState->stored_config.
    
    Signed-off-by: default avatarAlexey Kirillov <lekiravi@yandex-team.ru>
    Acked-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
    d32ad10a
    History
    qapi: net: Add query-netdev command
    Alexey Kirillov authored
    
    The query-netdev command is used to get the configuration of the current
    network device backends (netdevs).
    This is the QMP analog of the HMP command "info network" but only for
    netdevs (i.e. excluding NIC and hubports).
    
    The query-netdev command returns an array of objects of the NetdevInfo
    type, which are an extension of Netdev type. It means that response can
    be used for netdev-add after small modification. This can be useful for
    recreate the same netdev configuration.
    
    Information about the network device is filled in when it is created or
    modified and is available through the NetClientState->stored_config.
    
    Signed-off-by: default avatarAlexey Kirillov <lekiravi@yandex-team.ru>
    Acked-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>