#1 default values

Fermé
Créé il y a 1 an par p_kosyh · 1 commentaires
module fx-sys {

  yang-version "1.1";
  namespace "http://test.ru/fx/yang/sys";
  prefix "sys";

  organization "TEST";
  contact "yang@test.ru";
  description "sys root module";

  container sys {
    leaf hostname {
       description "Set router host name";
       default "Cronix";
       type string;
     }
  }

}
$ klish
configure
set sys hostname cronix
commit
show -- here we will see

 sys { 
   hostname Cronix;
 }

Expected behavier: hide items that are in defaults.

``` module fx-sys { yang-version "1.1"; namespace "http://test.ru/fx/yang/sys"; prefix "sys"; organization "TEST"; contact "yang@test.ru"; description "sys root module"; container sys { leaf hostname { description "Set router host name"; default "Cronix"; type string; } } } ``` ``` $ klish configure set sys hostname cronix commit show -- here we will see sys { hostname Cronix; } ``` Expected behavier: hide items that are in defaults.
Serj Kalichev a commenté il y a 1 an
Propriétaire

I don't understand. You REALLY set the element by "set" command. Default is not a case. It has value set by user and show it.

I don't understand. You REALLY set the element by "set" command. Default is not a case. It has value set by user and show it.
Connectez-vous pour rejoindre cette conversation.
Pas d'étiquette
Aucun jalon
Pas d'assignataire
2 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.