On Tue, Jan 18, 2005 at 03:58:30PM +0100, Thomas Graf wrote:
> > u32> ?
> > gives me help
> > u32> context
> > filter dev lo parent ffff: protocol ip prio 10
> > u32> add
> > u32> match ip src 10.0.0.21/32 flowid 1:16 action drop
> > u32> match ip src 0/0 flowid 1:16 action ok
> > u32> commit
> > filters submitted ..
>
> What do you if there is an error? To what kind of context do you
> go? Let's say the kernel reports -EINVAL.
You just refuse the commit and stay where you are:
buytenh@asd-tc2-m20core1> configure exclusive
Entering configuration mode
[edit]
buytenh@asd-tc2-m20core1# edit policy-options policy-statement test
[edit policy-options policy-statement test]
buytenh@asd-tc2-m20core1# set from prefix-list test
[edit policy-options policy-statement test]
buytenh@asd-tc2-m20core1# set then accept
[edit policy-options policy-statement test]
buytenh@asd-tc2-m20core1# show
from {
prefix-list test;
}
then accept;
[edit policy-options policy-statement test]
buytenh@asd-tc2-m20core1# commit
[edit]
'policy-options'
Policy error: test prefix-list referenced but not defined
error: configuration check-out failed
[edit policy-options policy-statement test]
buytenh@asd-tc2-m20core1# top
[edit]
buytenh@asd-tc2-m20core1# rollback
load complete
[edit]
buytenh@asd-tc2-m20core1#
|