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

Fix #28 #29

Merged
merged 1 commit into from
Aug 26, 2015
Merged

Fix #28 #29

merged 1 commit into from
Aug 26, 2015

Conversation

phil-dileo
Copy link
Contributor

  • Change regex to ignore lag members that start with PeerEthernet
  • Add missing systest to check for this

- Change regex to ignore lag members that start with PeerEthernet
- Add missing systest to check for this
@@ -587,7 +587,8 @@ def get_members(self, name):
grpid = re.search(r'(\d+)', name).group()
command = 'show port-channel %s all-ports' % grpid
config = self.node.enable(command, 'text')
return re.findall(r'Ethernet[\d/]*', config[0]['result']['output'])
return re.findall(r'\b(?!Peer)Ethernet[\d/]*\b',
config[0]['result']['output'])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The regex here looks for word boundaries \b and then does a negative look ahead to make sure Peer isn't matched.

@phil-dileo phil-dileo merged commit 9da726e into develop Aug 26, 2015
@phil-dileo phil-dileo deleted the fix-28-get_members branch October 21, 2015 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant