PacketFence - BTS - PacketFence
View Issue Details
0001429PacketFenceconfigurationpublic2012-04-20 10:192012-10-19 10:12
obilodeau 
 
normalminorunable to reproduce
closedfixed 
3.1.0 
3.1.03.1.0 
0001429: pfcmd interfaceconfig with enforcement=... fails
Reported on the mailing list:

I exec :

./pfcmd interfaceconfig edit eth3 ip="192.168.1.180", mask="255.255.255.0", type="internal", 
enforcement="inline", gateway="192.168.1.1"

ERROR!!

LOG:

Apr 19 15:23:46 pfcmd(8179) DEBUG: starting to parse 'interfaceconfig edit eth3 ip="192.168.1.180", 
mask="255.255.255.0", type="internal", enforcement="inline", gateway="192.168.1.1"' 
(pf::pfcmd::parseCommandLine)

Apr 19 15:23:46 pfcmd(8179) DEBUG: main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 1 main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 3 main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 1 parse With Grammar is 1 (pf::pfcmd::parseWithGrammar)

Apr 19 15:23:47 pfcmd(8179) DEBUG: 2 parse With Grammar is 0 (pf::pfcmd::parseWithGrammar)

 

And I exec:

./pfcmd interfaceconfig edit eth3 ip="192.168.1.180", mask="255.255.255.0", type="internal",  
gateway="192.168.1.1"

Success!!

 

Why ? but I should exec the first command and success .
No tags attached.
Issue History
2012-04-20 10:19obilodeauNew Issue
2012-04-20 10:19obilodeauStatusnew => assigned
2012-04-20 10:19obilodeauAssigned To => obilodeau
2012-04-20 12:39obilodeauProduct Version => 3.1.0
2012-04-20 12:43obilodeauNote Added: 0002674
2012-04-20 12:43obilodeauReproducibilityhave not tried => unable to reproduce
2012-04-20 12:43obilodeauStatusassigned => feedback
2012-04-26 09:04obilodeauNote Added: 0002688
2012-04-26 09:04obilodeauStatusfeedback => closed
2012-04-26 09:04obilodeauResolutionopen => fixed
2012-04-26 09:04obilodeauFixed in Version => 3.1.0
2012-10-19 10:12fgaudreaultAssigned Toobilodeau =>
2012-10-19 10:12fgaudreaultTarget Version+1 => 3.1.0

Notes
(0002674)
obilodeau   
2012-04-20 12:43   
On version 3.3.0 I was unable to reproduce the issue. On my environment I put in:

bin/pfcmd interfaceconfig edit eth1.666 ip="192.168.1.180", mask="255.255.255.0", type="internal", enforcement="inline", gateway="192.168.1.1"

and it worked and properly updated the interface in conf/pf.conf.

According to NEWS this issue was fixed in 3.1.0 and you say that you run 3.1.0?

Can you follow the steps to manually recompile your grammar file? run `perldoc /usr/local/pf/lib/pf/pfcmd/pfcmd.pm` and perform the steps mentioned under
"MANUAL PRECOMPILE".
(0002688)
obilodeau   
2012-04-26 09:04   
no feedback, closing