d09dc2 Add helper to get value by field using "nmcli --get-values"

1 file Authored by Coiby Xu 3 years ago, Committed by liutgnu 3 years ago,
1 file changed. 20 lines added. 0 lines removed.
    Add helper to get value by field using "nmcli --get-values"
    
    Resolves: bz1919052
    Upstream: Fedora
    Conflict: None
    
    commit 10c309b5f715496d70959a06f7c236cab31fb5a9
    Author: Coiby Xu <coxu@redhat.com>
    Date:   Thu Apr 1 15:32:08 2021 +0800
    
        Add helper to get value by field using "nmcli --get-values"
    
        nmcli --get-values <field> connection show /org/freedesktop/NetworkManager/ActiveConnection/1
        returns the following value for the corresponding field respectively,
          Field                                  Value
          IP4.DNS                                "10.19.42.41 | 10.11.5.19 | 10.5.30.160"
          802-3-ethernet.s390-subchannels        ""
          bond.options                           "mode=balance-rr"
    
        Signed-off-by: Coiby Xu <coxu@redhat.com>
        Acked-by: Kairui Song <kasong@redhat.com>
    
    Signed-off-by: Coiby Xu <coxu@redhat.com>
    
        
file modified
+20 -0