Subject: [netmod] The Question For The netmod List - Please Comment

From: "Clyde Wildes (cwildes)" <[email-masked]>
Date: Thu, 7 Aug 2014 02:31:10 +0000

Hi,

We are modeling state data for a single component that maintains state on
both the active and standby RP in a fully redundant configuration as well
on line cards or other distributed nodes. We are thinking of standardizing
the models so we appreciate feedback.

Is it best to handle this by:

a) using a list where each element in the list contains the state for each
location

 container xyz-component-state {
   config false;
   description
     "This container describes component state for all
      locations for this network device.";
   list location {
     key "location-name";
     description
       "This list describes a collection of component state for
        multiple locations in a distributed system. There would
        would be at least one entry called main and possibly
        others.";
     leaf location-name {
       type string;
       description
         "This leaf describes the name of the location containing
          operational state. Example: main, standby, line_card_1,
          etc.";
     }
     list neighbors {
       key "name";
       leaf name {
         type string;
         description
           "This leaf describes the name of the neighbor.";
       }
       leaf address {
         type inet:ip-address;
       }
       leaf up-time {
         type inet:timestamp;
       }
     }
   }
 }

b) the use of a location specific datastore source for a get operation

c) some other means.

Thanks,

Clyde