[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

data model snippet for notification parameters



Hi,

Here is the C/RelaxNG hack profile data structure
Juergen asked for: (XSD takes me too much time ;-)

   struct profiles {
     table profile [name] {
       ProfileName name;           # this is the key
       EventClassList class-filter?;
       filterInlineType data-filter?;
     }
   }

E.g:

 <netconf>
   <notifications>
     <profiles>
        <profile>
          <name>faults</name>
          <class-filter>fault</class-filter>
        </profile>
        <profile>
          <name>fred-faults-config</name>
          <class-filter>fault config</class-filter>
          <data-filter type="xpath" select="/bowlers/bowler[name='fred']"/>
        </profile>
      </profiles>
    </notifications>
 </netconf>

In this model, the parameters from the <create-subscription> RPC
are moved to a NV data model on the agent, and the only parameter
passed in the RPC to start receiving notifications (however that
ends up being done) is the profile name.

Additional tables under <notifications> could be added to configure
the agent to connect to a notification receiver application using a
profile name as well.


Andy





--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>