File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -327,9 +327,10 @@ func (n *cniNetwork) NetworkInfo() types.NetworkInfo {
327327 }
328328
329329 info := types.NetworkInfo {
330- Backend : types .CNI ,
331- Package : packageVersion ,
332- Path : path ,
330+ Backend : types .CNI ,
331+ Package : packageVersion ,
332+ Path : path ,
333+ DefaultNetwork : n .defaultNetwork ,
333334 }
334335
335336 dnsPath := filepath .Join (path , "dnsname" )
Original file line number Diff line number Diff line change @@ -369,10 +369,11 @@ func (n *netavarkNetwork) NetworkInfo() types.NetworkInfo {
369369 logrus .Infof ("Failed to get the netavark version: %v" , err )
370370 }
371371 info := types.NetworkInfo {
372- Backend : types .Netavark ,
373- Version : programVersion ,
374- Package : packageVersion ,
375- Path : path ,
372+ Backend : types .Netavark ,
373+ Version : programVersion ,
374+ Package : packageVersion ,
375+ Path : path ,
376+ DefaultNetwork : n .defaultNetwork ,
376377 }
377378
378379 dnsPath := n .aardvarkBinary
Original file line number Diff line number Diff line change @@ -97,11 +97,12 @@ type NetworkUpdateOptions struct {
9797
9898// NetworkInfo contains the network information.
9999type NetworkInfo struct {
100- Backend NetworkBackend `json:"backend"`
101- Version string `json:"version,omitempty"`
102- Package string `json:"package,omitempty"`
103- Path string `json:"path,omitempty"`
104- DNS DNSNetworkInfo `json:"dns,omitempty"`
100+ Backend NetworkBackend `json:"backend"`
101+ Version string `json:"version,omitempty"`
102+ Package string `json:"package,omitempty"`
103+ Path string `json:"path,omitempty"`
104+ DNS DNSNetworkInfo `json:"dns,omitempty"`
105+ DefaultNetwork string `json:"default_network,omitempty"`
105106}
106107
107108// DNSNetworkInfo contains the DNS information.
You can’t perform that action at this time.
0 commit comments