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


Cisco Routers Template

This example shows the complete Cisco router template in deviceModels.xml.

<?xml version="1.0" ?> 
<controlledDeviceModels> 
<controlledDeviceModel id="Cisco Router IOS 12.2 SB" vendor="cisco" 
model="Cisco Router IOS 12.2 SB" dictionary="cisco"> 
<capabilities> 
<!-- choices are None, Access-Accept, CoA, Both --> 
<capability name="Activation" value="Both" /> 
<capability name="Modification" value="false" /> 
<!-- choices are None, Single, (All). Currently All is not supported --> 
<capability name="Bundle" value="None" /> 
</capabilities> 
<serviceTemplates> 
<serviceTemplate name="" description="global section"> 
<mode name="Authentication"> 
<attributes targetDictionary="diameter" /> 
</mode> 
<mode name="Accounting"> 
<attributes targetDictionary="diameter"> 
<attribute name="Juniper-Service-Correlation-Id" 
copyFrom="Cisco-SSG-Service-Info" /> 
</attributes> 
</mode> 
<mode name="AbortSession"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="40" format="integer" /> 
<!--40 is Disconnect request --> 
</variables> 
</mode> 
</serviceTemplate> 
<serviceTemplate name="content_provider_tiered" 
description="content_provider_tiered service"> 
<mode name="Activation"> 
<attributes> 
<!-- requiredAttribute name="Acct-Session-Id"/--> 
<!-- 0x0B(activate) followed by "content_provider_tiered" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0B 63 6F 6E 
74 65 6E 74 5F 70 72 6F 76 69 64 65 72 5F 74 69 65 72 65 64" /> 
<parameterizedAttribute name="Cisco-AVPair" format="ip:inacl#10=permit ip 
any $(subscriberAddress) $(subscriberMask)" /> 
<parameterizedAttribute name="Cisco-AVPair" format="ip:outacl#20=permit ip 
$(contentProviderAddress) $(contentProviderMask) any" /> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=in access-group 
name 10 priority 10" /> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=in default drop" 
/> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=out access-group 
name 20 priority 10" /> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=out default drop" 
/> 
<parameterizedAttribute name="Cisco-SSG-Service-Info" 
format="QU;$(upstreamBandwidth);;;D;$(downstreamBandwidth);;" /> 
<overrideAttribute name="Cisco-AVPair" value="accounting-list=default" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request --> 
</variables> 
</mode> 
<mode name="Deactivation"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
<!-- 0x0C(deactivate) followed by "content_provider_tiered" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0C 63 6F 6E 
74 65 6E 74 5F 70 72 6F 76 69 64 65 72 5F 74 69 65 72 65 64" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request --> 
</variables> 
</mode> 
<mode name="ServiceCorrelationId"> 
<attributes targetDictionary="diameter"> 
<overrideAttribute name="Juniper-Service-Correlation-Id" 
value="Ncontent_provider_tiered" /> 
</attributes> 
</mode> 
<mode name="ServiceProfileDownload"> 
<attributes targetDictionary="radius"> 
<overrideAttribute name="User-Name" value="content_provider_tiered" /> 
</attributes> 
</mode> 
</serviceTemplate> 
<serviceTemplate name="internet_tiered" description="internet_tiered service"> 
<mode name="Activation"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
<!-- 0x0B(activate) followed by "internet_tiered" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0B 69 6E 74 
65 72 6E 65 74 5F 74 69 65 72 65 64" /> 
<parameterizedAttribute name="Cisco-SSG-Service-Info" 
format="QU;$(upstreamBandwidth);;;D;$(downstreamBandwidth);;" /> 
<overrideAttribute name="Cisco-AVPair" value="accounting-list=default" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request --> 
</variables> 
</mode> 
<mode name="Deactivation"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
<!-- 0x0C(deactivate) followed by "internet_tiered" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0C 69 6E 74 
65 72 6E 65 74 5F 74 69 65 72 65 64" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request -> 
</variables> 
</mode> 
<mode name="ServiceCorrelationId"> 
<attributes targetDictionary="diameter"> 
<overrideAttribute name="Juniper-Service-Correlation-Id" 
value="Ninternet_tiered" /> 
</attributes> 
</mode> 
<mode name="ServiceProfileDownload"> 
attributes targetDictionary="radius"> 
<overrideAttribute name="User-Name" value="internet_tiered" /> 
</attributes> 
</mode> 
</serviceTemplate> 
<serviceTemplate name="guided_entrance" description="guided_entrance 
service"> 
<mode name="Activation"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
<!-- 0x0B(activate) followed by "guided_entrance" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0B 67 75 69 
64 65 64 5F 65 6E 74 72 61 6E 63 65" /> 
<parameterizedAttribute name="Cisco-AVPair" format="ip:inacl#10=permit ip 
any $(originalAddress) $(originalMask)" /> 
<parameterizedAttribute name="Cisco-AVPair" format="ip:inacl#20=permit tcp 
any eq $(originalPort)" /> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=in access-group 
name 10 priority 10" /> 
<overrideAttribute name="Cisco-AVPair" value="ip:traffic-class=in access-group 
name 20 priority 10" /> 
<parameterizedAttribute name="Cisco-AVPair" format="ip:l4redirect=redirect to 
ip $(redirectAddress) port $(redirectPort)" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request --> 
</variables> 
</mode> 
<mode name="Deactivation"> 
<attributes> 
<requiredAttribute name="Acct-Session-Id" /> 
<!-- 0x0C(deactivate) followed by "guided_entrance" --> 
<overrideAttribute name="Cisco-SSG-Command-Code" value="{hex}0C 67 75 69 
64 65 64 5F 65 6E 74 72 61 6E 63 65" /> 
</attributes> 
<variables> 
<variable name="RadiusCode" value="43" format="integer" /> 
<!-- 43 is CoA request --> 
</variables> 
</mode> 
<mode name="ServiceCorrelationId"> 
<attributes targetDictionary="diameter"> 
<overrideAttribute name="Juniper-Service-Correlation-Id" 
value="Nguided_entrance" /> 
</attributes> 
</mode> 
<mode name="ServiceProfileDownload"> 
<attributes targetDictionary="radius"> 
<overrideAttribute name="User-Name" value="guided_entrance" /> 
</attributes> 
</mode> 
</serviceTemplate> 
</serviceTemplates> 
</controlledDeviceModel> 

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