In the defaults and route parts of the generate statement, you can specify options that define additional information about generated routes that is included with the route when it is installed in the routing table. All generated options are optional. Generated options that you specify in the defaults part of the generate statement are treated as global defaults and apply to all the generated routes you configure in the generate statement. Generated options that you specify in the route part of the generate statement override any global generated options and apply to that destination only.
To configure generated route options, include one or more of them in the defaults or route part of the generate statement (for routing instances, include the statement). For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement. Each of these options is explained in the sections that follow.
- [edit]
-
routing-options
-
-
generate {
-
- (defaults | route) {
- (active | passive);
-
as-path <as-path> <origin (egp | igp | incomplete)> <atomic-aggregate> <aggregator as-number in-address>;
-
community [ community-ids ];
-
discard;
- (brief | full);
- (metric | metric2 | metric3
| metric4) metric <type type>;
- (preference | preference2 | color | color2) preference <type type>;
-
tag string;
- }
- }
- }
The following sections explain how to specify generated route options: