-
Notifications
You must be signed in to change notification settings - Fork 41
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
[juniper] Removing last trunk member errors out #37
[juniper] Removing last trunk member errors out #37
Conversation
👍 |
@@ -495,3 +500,9 @@ def get_or_create_interface(if_list, port): | |||
|
|||
return existing | |||
|
|||
|
|||
def port_is_in_access_mode(port): | |||
return port.mode is None or port.mode == "access" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the conditions to have port.mode == None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 |
👎 tests are failing |
They all passed on my machine :( Looks like the order is important in the XML (yeah right)... Trying to reproduce locally. |
c0aaab1
to
cc2402a
Compare
@@ -335,19 +335,19 @@ def apply_trunk_native_vlan(self, interface_data, port): | |||
def get_trunk_native_vlan_node(self, interface_node): | |||
return interface_node.xpath("unit/family/ethernet-switching/native-vlan-id") | |||
|
|||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i mean why static?
I get the "it doesn't use self" argument, but philsophilcally, it does not act on the class, of the instances but rather a a simple extraction of an instance method, i don't think that qualifies it to be static. and maybe it's also worth being _underscored as a protected method
LGTM 👍 |
👎 just in case i wasn't clear |
cc2402a
to
1af706d
Compare
Alright, addressed latest comments in last push. |
1af706d
to
eeaff03
Compare
👍 |
…ember [juniper] Removing last trunk member errors out
Removing the last trunk member of a trunk interface results
in an error at commit time.