issue regarding using <CONFIG> tag to write command into konfd

13 views
Skip to first unread message

Roland Chang

unread,
Nov 9, 2020, 6:46:00 PM11/9/20
to klish-dev
Hello, 
For CONFIG tag to write into konfd, I understood that if there are some sub-commands(sub-views) under "configure-view", these sub-command string won't be successfully written into running-config if the "configure terminal" string does not exist there since it is based on depth and build running-config hierarchically.  
ex:
console# configure terminal
console(config)# mirror-session m1 //-> here using <CONFIG> to write the string into kinfd.
//when show running-config:
configure terminal 
    mirrors-ession-m1
       ....
!

My question is :
Since we load the startup-config starting from "configure-view",  we'd like to get rid of "configure terminal" string from the file. Obviously most commands are under configure-view, but during user configuration, if we don't first write "configure terminal" string into konfd, the subsequent command strings won't be able to successfully written into konfd.
Is there a way to  we can manipulate the CONFIG tag or depth attribute or something else to achieve this goal ?
!
mirror-session m1 
  destination erspan....
 mirror-session m2
  destiontion ...
!

kindly advise !
Thank you for your response in advance.
Reply all
Reply to author
Forward
0 new messages