<sequence-number>
Syntax
<sequence-number> {permit | deny}
{service-name <SERVICE-NAME> | service-instance-name <SERVICE-INSTANCE-NAME>}
no <sequence-number> {permit | deny}
{service-name <SERVICE-NAME> | service-instance-name <SERVICE-INSTANCE-NAME>}
Description
Adds a filter rule to the service profile. The sequence number configured determines the priority with which the rule is matched. Lower the sequence number, higher is the priority.
Service-name: mDNS packets are matched against the service IDs configured under the service name.
Service-instance-name: mDNS packets are matched against the service instance name present in the mDNS packets.
The
no
form of this command deletes the filter configured in the service profile.
When an mDNS packet does not match any of the filters configured in the profile, then the packet is denied.
Command context
config-mdns-sd-profile
Parameters
<SERVICE-NAME>
Specifies the service name. Maximum 128 characters.
<SERVICE-INSTANCE-NAME>
Specifies the service instance name. Maximum 128 characters.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Adding filter rules to a service profile:
switch(config)# mdns-sd profile student switch(config-mdns-sd-profile)# 10 permit service-name default-appletv switch(config-mdns-sd-profile)# 20 deny service-name default-appletv service-instance-name instance-name office._pdl-datastream._tcp.local switch(config-mdns-sd-profile)# 30 permit service-instance-name instance-name library._pdl-datastream._tcp.local switch(config-mdns-sd-profile)# 40 deny
Deleting filter rules to a service profile:
switch(config)# mdns-sd profile student switch(config-mdns-sd-profile)# 10 permit service-name default-appletv switch(config-mdns-sd-profile)# 20 deny service-name default-appletv service-instance-name instance-name office._pdl-datastream._tcp.local switch(config-mdns-sd-profile)# 30 permit service-instance-name instance-name library._pdl-datastream._tcp.local switch(config-mdns-sd-profile)# no 30 permit service-instance-name instance-name library._pdl-datastream._tcp.local switch(config-mdns-sd-profile)# 40 deny