-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(FACT-2072) Update the regex to get Infiniband MAC and IP address on …
…CentOS 7.x platform (#1838) * Update ip.rb * Update RegEx for finding MAC and IP addresses from ifconfig on CentOS 7.x * (FACT-2072) Added test to test new RegEx. * Reverting an unnecessary change
- Loading branch information
1 parent
8ff0fac
commit bd4015d
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
spec/fixtures/unit/util/ip/linux_get_single_interface_ib0_centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ib0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044 | ||
inet 10.55.200.50 netmask 255.255.0.0 broadcast 10.55.255.255 | ||
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8). | ||
HWaddr 80:00:00:03:fe:80:00:00:00:00:00:00:00:11:75:00:00:6f:02:fe txqueuelen 256 (InfiniBand) | ||
RX packets 26603237 bytes 15921365732 (14.8 GiB) | ||
RX errors 0 dropped 0 overruns 0 frame 0 | ||
TX packets 22735277 bytes 4196650455 (3.9 GiB) | ||
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ib0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044 | ||
inet 10.55.200.50 netmask 255.255.0.0 broadcast 10.55.255.255 | ||
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8). | ||
infiniband 80:00:00:03:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand) | ||
RX packets 26603237 bytes 15921365732 (14.8 GiB) | ||
RX errors 0 dropped 0 overruns 0 frame 0 | ||
TX packets 22735277 bytes 4196650455 (3.9 GiB) | ||
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters