tom472 / mediabox

Container based media tools configuration
MIT License
428 stars 83 forks source link

Known Issue with Ubuntu 18.04 - CIDR Address #44

Closed tom472 closed 6 years ago

tom472 commented 6 years ago

Currently starting testing on Ubuntu 18.04 LTS

It looks like the function that determines the CIDR address is having issues. Haven't even started troubleshooting it yet - just putting this here right away so I remember to work on it.

@kspillane - Just mentioning you so that you see this post.

tom472 commented 6 years ago

OK looks like the output from ifconfig is formatted differently in 18.04. Now I at least know where to start to begin work on a fix.

Netmask and Broadcast have flipped positions in the output. Plus the output is now using space as the delimiter instead of :.

18.04 ifconfig: inet 10.10.10.10 netmask 255.255.255.0 broadcast x.x.x.x

16.04 ifconfig: inet addr:10.10.10.10 Bcast:x.x.x.x Mask:255.255.255.0

tom472 commented 6 years ago

OK - Pretty much have this fixed. A little more testing and it should be fixed by tonight.

tom472 commented 6 years ago

Issue fixed via commit: https://github.com/tom472/mediabox/commit/bc704656e54808d7bf5d5c8425593d3f761faadf

Quick check for Ubuntu Version, then find subnet based on expected ifconfig output.