[Contents][Prev][Next][Index][Report an Error]

Interface Service Sets for JUNOS SDK Applications

Interface service sets apply to all packets entering and leaving a media interface (in the second example following, the media interface is ge-0/0/0.0). After the service set is applied, packets can be injected back to the Packet Forwarding Engine for regular forwarding.

The following example shows an interface service set configured for an SDK application:

[edit]
services {
service-set sset1 {
extension-service jnx-flow {
provider-specific rules;
}
interface-service { # Existing hierarchy
service-interface { # Indicates an interface service set
ms-x/y/0.0; # Specifies which PIC to load this policy on
}
}
}
}

This service set can be attached to any media interface of type family inet. To associate a defined service set with an interface, include the service-set statement at the [edit interfaces interface-name unit logical-unit-number family inet service (input | output)] hierarchy level:

[edit]
interfaces { # Existing hierarchy
ge-0/0/0 {
unit 0 {
family inet {
service {
input {
service-set sset1; # Attach service set
}
output {
service-set sset1; # Attach service set to output as well
}
}
}
}
}
}

[Contents][Prev][Next][Index][Report an Error]