PacketFence - BTS - PacketFence | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0001353 | PacketFence | configuration | public | 2011-12-29 09:26 | 2012-10-19 10:13 | ||||||||||
Reporter | dwuelfrath | ||||||||||||||
Assigned To | dwuelfrath | ||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||
Status | closed | Resolution | duplicate | ||||||||||||
Platform | OS | OS Version | |||||||||||||
Product Version | devel | ||||||||||||||
Target Version | 3.4.0 | Fixed in Version | 3.4.0 | ||||||||||||
fixed in git revision | |||||||||||||||
fixed in mtn revision | |||||||||||||||
Summary | 0001353: configurator not finding interfaces | ||||||||||||||
Description | The function get_networkinfos actualy parses the output of “/sbin/ifconfig –a” Trying to match for “inet addr” and “mask” (to make the mater short) But our system is localized (in French ) so addr -à adr and mask -> masque … It gave us an empty networks.conf that we had to populate by hand… Without that, rerunning configurator.pl gave the error “Invalid existing networks configuration file :” at ./configurator.pl line 89 Solution: Line 465 we made a modification … If ( ( /inet addr:((?:\d{1,3}\.){3}\d{1,3}).+Mask:((?:\d{1,3}\.){3}\d{1,3})/ ) || ( /inet adr:((?:\d{1,3}\.){3}\d{1,3}).+Masque:((?:\d{1,3}\.){3}\d{1,3})/ ) ) { So now it detects the interfaces …. Question: 1) why not using /sbin/ip (from iproute package) 2) the script include the Net::Interface module why not using this ? | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | |||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | perl_pmask.pm (1,565) 2012-01-17 07:17 https://www.packetfence.org/bugs/file_download.php?file_id=130&type=bug get_networkinfos.pm (1,479) 2012-01-17 07:18 https://www.packetfence.org/bugs/file_download.php?file_id=131&type=bug | ||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2011-12-29 09:26 | dwuelfrath | New Issue | |||||||||||||
2011-12-29 09:26 | dwuelfrath | Status | new => assigned | ||||||||||||
2011-12-29 09:26 | dwuelfrath | Assigned To | => dwuelfrath | ||||||||||||
2011-12-30 11:37 | obilodeau | Note Added: 0002492 | |||||||||||||
2012-01-17 07:17 | dwygodzki | File Added: perl_pmask.pm | |||||||||||||
2012-01-17 07:18 | dwygodzki | File Added: get_networkinfos.pm | |||||||||||||
2012-01-17 07:19 | dwygodzki | Note Added: 0002538 | |||||||||||||
2012-05-07 15:35 | obilodeau | Relationship added | child of 0001444 | ||||||||||||
2012-06-20 05:19 | dwygodzki | Note Added: 0002817 | |||||||||||||
2012-06-21 20:25 | obilodeau | Note Added: 0002819 | |||||||||||||
2012-06-21 20:26 | obilodeau | Relationship added | duplicate of 0001418 | ||||||||||||
2012-06-21 20:27 | obilodeau | Status | assigned => closed | ||||||||||||
2012-06-21 20:27 | obilodeau | Resolution | open => duplicate | ||||||||||||
2012-06-21 20:27 | obilodeau | Fixed in Version | => 3.4.0 | ||||||||||||
2012-10-19 10:13 | fgaudreault | Target Version | +1 => 3.4.0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|