Skip to content

Commit

Permalink
Merge pull request #261 from project-arlo/system-xfmr
Browse files Browse the repository at this point in the history
Migrate openconfig-system to transformer
  • Loading branch information
kwangsuk authored Nov 12, 2019
2 parents 410c678 + 834cb56 commit c5e0cc2
Show file tree
Hide file tree
Showing 4 changed files with 341 additions and 504 deletions.
3 changes: 2 additions & 1 deletion config/transformer/models_list
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ openconfig-acl.yang
openconfig-acl-annot.yang
openconfig-network-instance.yang
openconfig-network-instance-annot.yang
sonic-vxlan.yang
openconfig-system.yang
openconfig-system-annot.yang
31 changes: 31 additions & 0 deletions models/yang/annotations/openconfig-system-annot.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module openconfig-system-annot {

yang-version "1";

namespace "http://openconfig.net/yang/openconfig-system-annot";
prefix "oc-sys-annot";

import openconfig-system { prefix oc-sys; }
import sonic-extensions {prefix sonic-ext; }

deviation /oc-sys:system/oc-sys:state {
deviate add {
sonic-ext:subtree-transformer "sys_state_xfmr";
}
}
deviation /oc-sys:system/oc-sys:memory {
deviate add {
sonic-ext:subtree-transformer "sys_memory_xfmr";
}
}
deviation /oc-sys:system/oc-sys:cpus {
deviate add {
sonic-ext:subtree-transformer "sys_cpus_xfmr";
}
}
deviation /oc-sys:system/oc-sys:processes {
deviate add {
sonic-ext:subtree-transformer "sys_procs_xfmr";
}
}
}
Loading

0 comments on commit c5e0cc2

Please sign in to comment.