Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get rid of IsVirtual field #54

Merged
merged 4 commits into from Jun 12, 2014
Merged

get rid of IsVirtual field #54

merged 4 commits into from Jun 12, 2014

Conversation

klyachin
Copy link

network: get rid of IsVirtual field

The field IsVirtual is redundant in NetworkInfo and network.Info structs,
the value may be inferred from the value of VLANTag field.

@@ -52,3 +48,9 @@ func (i *Info) ActualInterfaceName() string {
}
return i.InterfaceName
}

// IsVirtual returns true when the interface is a virtual device, as

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed a dot at the end.

@dimitern
Copy link

LGTM with a few small changes, extracting TestAll(t *testing.T) in package_test and renaming the suite to InfoSuite.

@klyachin
Copy link
Author

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jun 12, 2014

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Jun 12, 2014
get rid of IsVirtual field

network: get rid of IsVirtual field

The field IsVirtual is redundant in NetworkInfo and network.Info structs,
the value may be inferred from the value of VLANTag field.
@jujubot jujubot merged commit 5f39a43 into juju:master Jun 12, 2014
ericsnowcurrently pushed a commit to ericsnowcurrently/juju that referenced this pull request May 26, 2015
hmlanigan pushed a commit to hmlanigan/juju that referenced this pull request Aug 26, 2019
MAAS2: handle fields that might be missing or null from the API

I asked the MAAS team to look through a list of all the fields that we're using in the MAAS v2 API and tell us which of them were optional or nullable. These changes are based on the information they gave us back. 

Based on the spreadsheet here: https://docs.google.com/a/canonical.com/spreadsheets/d/1qysFkvJwz3w19B3kYcnlokwqdTb82HGCrF4pUk6gtfA/edit?usp=sharing
laszlokajtar pushed a commit to laszlokajtar/juju that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants