Description

This article explain possible reasons and how to fix the following commit error:

root@labdevice# commit check

[edit interfaces ae0 unit 0 family ethernet-switching]

 'filter'

  Referenced filter 'TEST' is not defined

error: Failed to read config

commit-check failed

 commit-check failed

error: configuration check-out failed  

Solution

There are a few options that can cause this commit error. Here are the main reasons:

1) Applied filter is not defined under firewall filter.

Run command >show configuration | display set | match <filter name> and confirm there is configuration added under firewall filter hierarchy.

 

2) There is a name mismatch.

Make sure referenced filter have the same name as the one configured under firewall filter hierarchy.

 

3) Filter family is not matching.

Using as example the description output the filter is applied on interface ae0 family ethernet-switching. If filter is defined as different family the filter will not be applied.

 

set firewall family inet filter TEST term 1 then accept

 

[edit interfaces ae0 unit 0 family ethernet-switching]

 'filter'

  Referenced filter 'TEST' is not defined

error: Failed to read config

commit-check failed

 commit-check failed

error: configuration check-out failed  

 

Make sure to match the filter family with the interface family.

Modification History

2024-02-05 : Article Created