arithmetic expression: expecting primary: " (32-)/4 "
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned | ||
OPNFV |
New
|
Undecided
|
Unassigned | ||
ubuntu-fan (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I've configured a bridge interface (named vlan0) through interfaces, but can't take it up with ifup, since the if-up-script from ubuntu-fan aborts with error status
reason:
# fanctl net start vlan0
/usr/sbin/fanctl: 41: /usr/sbin/fanctl: arithmetic expression: expecting primary: " (32-)/4 "
As far as I can see the problem is that in cmd_net_up() the line
addr="${addr%/*}"
cuts the mask from the interface config and passes the pure ip address only, but later config_filename() calls width_to_mask(), which tries to use the (now missing) mask.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ubuntu-fan 0.12.6
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Nov 2 14:26:42 2017
InstallationDate: Installed on 2017-10-24 (9 days ago)
InstallationMedia: Lubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
PackageArchitec
SourcePackage: ubuntu-fan
UpgradeStatus: No upgrade log present (probably fresh install)
im seeing this in ubuntu 17.04 also.