I have this configuration file where dps can have a list of switches (e.g. sw1, sw2, etc) each switch has db_id and list of interfaces as shown below. I want to write a YANG model for this fils.
dps:
<sw1>:
dp_id: <value>
interfaces:
1:
name: <value>
native_vlan: <value>
2:
name: <value>
native_vlan: <value>
<sw2>:
dp_id: <value>
interfaces:
1:
name: <value>
native_vlan: <value>
2:
name: <value>
native_vlan: <value>
I could not find a way to make the inner list name (i.e. sw1, sw2) configurable (i.e. inserted by users). Is it possible or YANG doesn't support that.