cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
827
Views
1
Helpful
3
Replies

Template deployement

lallaa108
Level 1
Level 1

Hi

I have New to NSO and Started Playing around with the Application. I have Tried to  configure a Simple QOS template for IOS XR and XE devices. Below is my config. It works perfect for IOS XR devices, but for XE devices I am getting the following error

'devices device PE1 config class-map VPAN-CORE-CONTROL' is not configured


Please help


Below is the template

devices template DEFAULT_TEMPLETE

config

  cisco-ios-xr:class-map VPAN-CORE-CONTROL

   match dscp [ cs6 cs7 50 52 54 58 60 62 ]

   match mpls experimental topmost [ 6 7 ]

   match precedence [ internet network ]

  !

  cisco-ios-xr:class-map VPAN-CORE-BUSINESS

   match dscp [ cs2 af21 af22 af23 ]

   match mpls experimental topmost [ 2 ]

   match precedence [ immediate ]

  !

  cisco-ios-xr:class-map VPAN-CORE-STANDARD

   match dscp [ default 2 4 6 ]

   match mpls experimental topmost [ 0 ]

   match precedence [ routine ]

  !

  cisco-ios-xr:class-map VPAN-CORE-SCAVENGER

   match dscp [ cs1 af11 af12 af13 ]

   match mpls experimental topmost [ 1 ]

   match precedence [ priority ]

  !

  cisco-ios-xr:class-map VPAN-CORE-INTERACTIVE

   match dscp [ cs3 af31 af32 af33 ]

   match mpls experimental topmost [ 3 ]

   match precedence [ flash ]

  !

  cisco-ios-xr:class-map default

  !

  ! after default

  cisco-ios-xr:class-map VPAN-CORE-VIDEO

   match dscp [ cs4 af41 af42 af43 ]

   match mpls experimental topmost [ 4 ]

   match precedence [ flash-override ]

  !

  ! after VPAN-CORE-VIDEO

  cisco-ios-xr:class-map VPAN-CORE-VOICE

   match dscp [ cs5 ef 42 44 ]

   match mpls experimental topmost [ 5 ]

   match precedence [ critical ]

  !

  ! after VPAN-CORE-VOICE

  cisco-ios-xr:class-map class-default

  !

  cisco-ios-xr:policy-map VPAN-CORE-OUT

   class class-ref VPAN-CORE-CONTROL

    bandwidth percent 4

    random-detect exp 6

     min-threshold      20

     min-threshold-unit ms

     max-threshold      100

     max-threshold-unit ms

    !

    random-detect exp 7

     min-threshold      20

     min-threshold-unit ms

     max-threshold      100

     max-threshold-unit ms

    !

   !

   class class-ref VPAN-CORE-VOICE

    police-rate-unit police rate percent 10

    police-rate-unit police rate conform-action transmit

    police-rate-unit police rate exceed-action drop

    priority level 1

   !

   class class-ref VPAN-CORE-VIDEO

    police-rate-unit police rate percent 20

    police-rate-unit police rate conform-action transmit

    police-rate-unit police rate exceed-action drop

    priority level 2

   !

   class class-ref VPAN-CORE-INTERACTIVE

    bandwidth percent 35

    random-detect exp 3

     min-threshold      20

     min-threshold-unit ms

     max-threshold      100

     max-threshold-unit ms

    !

   !

   class class-ref VPAN-CORE-BUSINESS

    bandwidth percent 20

    random-detect exp 2

     min-threshold      20

     min-threshold-unit ms

     max-threshold      100

     max-threshold-unit ms

    !

   !

   class class-ref VPAN-CORE-STANDARD

    bandwidth percent 9

    random-detect exp 0

     min-threshold      20

     min-threshold-unit ms

     max-threshold      100

     max-threshold-unit ms

    !

   !

   class class-ref VPAN-CORE-SCAVENGER

    bandwidth percent 1

    random-detect exp 1

     min-threshold      2

     min-threshold-unit ms

     max-threshold      5

     max-threshold-unit ms

    !

   !

  !

  ios:class-map VPAN-CORE-STANDARD

   match dscp [ default 2 4 6 ]

   match ip precedence [ 0 ]

   match mpls experimental topmost [ 0 ]

  !

  ios:class-map VPAN-CORE-VIDEO

   match dscp [ cs4 af41 af42 af43 ]

   match ip precedence [ 4 ]

   match mpls experimental topmost [ 4 ]

  !

  ios:class-map VPAN-CORE-VOICE

   match dscp [ cs5 ef 42 44 ]

   match ip precedence [ 5 ]

   match mpls experimental topmost [ 5 ]

  !

  ios:class-map VPAN-CORE-CONTROL

   match dscp [ cs6 cs7 50 52 54 58 60 62 ]

   match ip precedence [ 6 7 ]

  !

  ios:class-map VPAN-CORE-INTERACTIVE

   match dscp [ cs3 af31 af32 af33 ]

   match ip precedence [ 3 ]

   match mpls experimental topmost [ 3 ]

  !

  ios:policy-map VPAN-CORE-OUT

   class VPAN-CORE-CONTROL

    bandwidth percent 4

   !

   class VPAN-CORE-VOICE

    police-cir-percent police cir percent percentage 10

    priority

   !

   class VPAN-CORE-VIDEO

    police-cir-percent police cir percent percentage 20

    priority

   !

   class VPAN-CORE-INTERACTIVE

    bandwidth percent 35

   !

   class VPAN-CORE-SCAVENGER

    bandwidth percent 1

   !

   class VPAN-CORE-STANDARD

    bandwidth percent 9

   !

   class class-default

    bandwidth percent 1

   !

  !

!

3 Replies 3

Jan Lindblad
Cisco Employee
Cisco Employee

'devices device PE1 config class-map VPAN-CORE-CONTROL' is not configured

So at which point do you get this message? Is this a message you get when you deploy a service that expects VPAN-CORE-CONTROL to already be provisioned on the device? Did you apply your template to PE1, and if so, do you see VPAN-CORE-CONTROL being part of the config?

Hi Jan

This error occurs after I do a commit dry-run on the device . I have done Templates with only IOS configurations , I get the same result. When I do a show config I see the full config displayed to me (please see below)

admin@ncs(config)# devices device PE1 apply-template template-name DEFAULT_TEMPLETE

apply-template-result {

    device PE1

    result ok

}

admin@ncs(config)# commit dry-run

Aborted: 'devices device PE1 config class-map VPAN-CORE-CONTROL' is not configured

admin@ncs(config)# show config

devices device PE1

config

  ios:class-map VPAN-CORE-CONTROL

   match dscp 50

   match dscp 52

   match dscp 54

   match dscp 58

   match dscp 60

   match dscp 62

   match dscp cs6

   match dscp cs7

   match ip precedence 6 7

  !

  ios:class-map VPAN-CORE-INTERACTIVE

   match dscp af31

   match dscp af32

   match dscp af33

   match dscp cs3

   match ip precedence 3

   match mpls experimental topmost 3

  !

  ios:class-map VPAN-CORE-STANDARD

   match dscp 2

   match dscp 4

   match dscp 6

   match dscp default

   match ip precedence 0

   match mpls experimental topmost 0

  !

  ios:class-map VPAN-CORE-VIDEO

   match dscp af41

   match dscp af42

   match dscp af43

   match dscp cs4

   match ip precedence 4

   match mpls experimental topmost 4

  !

  ios:class-map VPAN-CORE-VOICE

   match dscp 42

   match dscp 44

   match dscp cs5

   match dscp ef

   match ip precedence 5

   match mpls experimental topmost 5

  !

  ios:policy-map VPAN-CORE-OUT

   class VPAN-CORE-CONTROL

    bandwidth percent 4

   !

   class VPAN-CORE-INTERACTIVE

    bandwidth percent 35

   !

   class VPAN-CORE-SCAVENGER

    bandwidth percent 1

   !

   class VPAN-CORE-STANDARD

    bandwidth percent 9

   !

   class VPAN-CORE-VIDEO

    police cir percent 20

    !

    priority

   !

   class VPAN-CORE-VOICE

    police cir percent 10

    !

    priority

   !

   class class-default

    bandwidth percent 1

   !

  !

!

!

admin@ncs(config)#

I think this is my Issue. if I do manuel config I get to add options after IOS:CLASS-MAP. I do not get that Option then I configure a template. I don't know I have only been Playing with the System for 5 days now

admin@ncs(config)# devices device CE1 config

admin@ncs(config-config)# ios:class-map ?

Possible completions:

  aol       - Configure CBAC class-map for IM-AOL protocol

  edonkey   - eDonkey

  fasttrack - FastTrack Traffic - KaZaA, Morpheus, Grokster...

  gnutella  - Gnutella Version2 Traffic - BearShare, Shareeza, Morpheus ...

  http      - Configure CBAC class-map for HTTP protocol

  imap      - Configure CBAC class-map for IMAP protocol

  kazaa2    - Kazaa Version 2

  match-all - Logical-AND all matching statements under this classmap

  match-any - Logical-OR all matching statements under this classmap

  msnmsgr   - Configure CBAC class-map for IM-MSN protocol

  pop3      - Configure CBAC class-map for POP3 protocol

  smtp      - Configure CBAC class-map for SMTP protocol

  sunrpc    - Configure CBAC class-map for RPC protocol

  type      - type of the class-map

  ymsgr     - Configure CBAC class-map for IM-YAHOO protocol

admin@ncs(config-config)# ios:class-map