public icon indicating copy to clipboard operation
public copied to clipboard

Add File Synchronization for redundancy

Open rolandphung opened this issue 3 years ago • 4 comments

  • (A) release/models/system/openconfig-system-redundancy.yang
    • Add OpenConfig model for file synchronization
  • (M) release/models/system/openconfig-system.yang

This proposal introduces a set of models which represent files that synchronize between two controller cards or supervisors. Synced files can be specified as arbitrary files from within the system.

pyang output:

module: openconfig-system                                                      
  +--rw system
     +--rw redundancy
        +--rw file-sync
           +--rw files
              +--rw file* [path]
                 +--rw path      -> ../config/path
                 +--rw config
                 |  +--rw path?   string
                 +--ro state
                    +--ro path?             string
                    +--ro status?           enumeration
                    +--ro last-sync-time?   oc-types:timeticks64

Reference:

  • Arista
    • show redundancy file-replication
      • https://www.arista.com/en/um-eos/eos-switch-booting-commands#xx1122125
    • file-replication configuration example
redundancy
   file replication
      path flash:/random-file
      path flash:/another-file
  • Cisco rsync
    • https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/system-management/73x/b-system-management-cg-8k-73x/m-synch-file-systems.html?dtid=osscdc000283#Cisco_Concept.dita_2134690f-1fa9-44a9-8ccb-b62836abaeff
  • Juniper commit synchronize
    • https://www.juniper.net/documentation/us/en/software/junos/cli/topics/topic-map/synchronising-routing-engines.html

rolandphung avatar Jul 26 '22 22:07 rolandphung

Compatibility Report for commit 219ddea4d67066a706e65d7eea9247466129775c: ⛔ yanglint@SO 1.10.17

OpenConfigBot avatar Jul 26 '22 22:07 OpenConfigBot

@rolandphung - can you elaborate on what files are candidates for synchronization here? Is it limited to configuration files, or would it include scripts, arbitrary files, etc. as well? The documentation seems to indicate this is limited to configuration files. https://www.arista.com/en/um-eos/eos-supervisor-redundancy?searchword=eos%20routing%20information%20protocol

aredmon8551 avatar Jul 27 '22 16:07 aredmon8551

@rolandphung - can you elaborate on what files are candidates for synchronization here? Is it limited to configuration files, or would it include scripts, arbitrary files, etc. as well? The documentation seems to indicate this is limited to configuration files. https://www.arista.com/en/um-eos/eos-supervisor-redundancy?searchword=eos%20routing%20information%20protocol

This feature is not limited to configuration files but scripts and arbitrary files as well. The configuration in Arista switches would look as follow:

redundancy
   file replication
      path flash:/random-file
      path flash:/another-file

I've updated the original comment to reflect this.

rolandphung avatar Jul 27 '22 22:07 rolandphung

@rgwilton @hellt for comment

dplore avatar Jul 30 '22 02:07 dplore