Common Clauses

Common clauses are classified as logic, start, or end clauses. Logic clauses indicate logical relationships, the start clause begins a configuration in XPL, and the end clause concludes a configuration in XPL.

Logic Clauses

eq: equal to.

ge: greater than or equal to.

le: less than or equal to.

in: included in a set.

if: introductory condition clause.

elseif: introductory condition clause, used to filter the routes that fail to match the previous filtering condition.

else: introductory condition clause, used to include all the routes that fail to meet previous matching rules.

then: introductory action clause, in the format of if+condition clause+then or elseif+condition clause+then. else is not followed by an introductory action clause.

apply: action implementation clause, in the format of apply+action clause. Action clauses (excluding approve, refuse, finish, call route-filter route-filter-name, and break) must be used together with apply.

endif: conclusive condition clause, following a condition and an action, and concluding all matching rules.

Configuration Start and End Clauses

Configuration Start Clauses

Configuration End Clauses

xpl global-value: begins the edition of a global variable set.

end-global-value: concludes the edition of a global variable set.

xpl ip-prefix-list ip-prefix-list-name: begins the edition of an IPv4 prefix set.

end-list: concludes the edition of an IPv4 prefix set.

xpl ipv6-prefix-list ipv6-prefix-list-name: begins the edition of an IPv6 prefix set.

end-list: concludes the edition of an IPv6 prefix set.

xpl as-path-list as-path-list-name: begins the edition of an AS_Path set.

end-list: concludes the edition of an AS_Path set.

xpl community-list community-list-name: begins the edition of a community set.

end-list: concludes the edition of a community set.

xpl large-community-list large-community-list-name: starts the edition of a Large-community set.

end-list: concludes the edition of a Large-community set.

xpl rd-list rd-list-name: begins the edition of an RD set.

end-list: concludes the edition of an RD set.

xpl extcommunity-list rt rt-list-name: begins the edition of a route target set.

end-list: concludes the edition of a route target set.

xpl extcommunity-list soo soo-list-name: begins the edition of a site of origin (SoO) set.

end-list: concludes the edition of an SoO set.

xpl route-filter route-filter-name: begins the edition of a route-filter.

end-filter: concludes the edition of a route-filter.

xpl route-flow-group group-name: begins the edition of a QPPB configuration group.

end-group: concludes the edition of a QPPB configuration group.

A configuration end clause concludes only the edition of a set or route-filter in the paragraph editing interface view. To save the current configuration and exit this view, press Ctrl+X.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >