# Yang Actionpoint/Grouping Annotate

**URL:** <https://dmap-community.ductus.global/t/yang-actionpoint-grouping-annotate/2700>\
**Category:** YANG\
**Created:** [October 10, 2019, 5:45am UTC](https://dmap-community.ductus.global/t/yang-actionpoint-grouping-annotate/2700 "2019-10-10T05:45:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramakrishnan](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Ramakrishnan](https://dmap-community.ductus.global/u/Ramakrishnan)\
**Post date:** [October 10, 2019, 5:45am UTC](https://dmap-community.ductus.global/t/yang-actionpoint-grouping-annotate/2700/1 "2019-10-10T05:45:18Z")

</div>

Hi,  
I have the following schema:

**eci-srtp-aps-aug.yang**

```
module eci-srtp-aps-aug { 
    yang-version 1.1;
     namespace "urn:eci:params:xml:ns:yang:eci-srtp-aps-aug";

 prefix "eci-srtp-aps-aug";

```

`....`

```
   /* augmentation */
        augment "/te:te/te:tunnels/te:tunnel" {
                container config-aps {
                        uses srtp-aps-protocol;
                        container actions {                                                                                                                                                                    
                                uses eci-aps:aps-actions;
                        }
                }

            container state-aps {
        config false;
                    uses eci-aps:aps-state;
            }
    }

```

**\> eci-aps.yang**

```
grouping aps-actions {                                                                                                                                                                                 
 action manual-switch-working {
   //tailf:actionpoint "apsactionpoint"; < Need this in the annotate file below>
description
  "A switch action initiated by an operator command.
   It switches normal traffic signal to the working
   transport entity.";
reference "ITU-T G.808.1";
  }

```

\*\*

**\> eci-srtp-aps-ann.yang**

\*\*

```
module eci-srtp-aps-ann {                                                                                                                                                                                      
    namespace "urn:eci-srtp-aps-ann";
    prefix eci-srtp-aps-ann;

    import tailf-common { prefix tailf; }
    import ietf-te { prefix te; }
    import eci-aps { prefix eci-aps; }
    import eci-srtp-aps-aug { prefix eci-srtp-aps-aug; }

    tailf:annotate "/te:te/te:tunnels/te:tunnel/eci-srtp-aps-aug:config-aps" {
        tailf:callpoint SrtpAps { } <This Works>
    }

    tailf:annotate "/te:te/te:tunnels/te:tunnel/eci-srtp-aps-aug:config-aps/eci-srtp-aps-aug:actions/eci-aps:manual-switch-working" {
        tailf:actionpoint "manualapsactionpoint"; <This does not work>
    }
}

```

Please look at the above files and provide some insight on how I can add actionpoint in my annotate file. Added comments in the Yang file on what is working/not-working.

---

<div class="post-metadata">

**Author:** ![per](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@per](https://dmap-community.ductus.global/u/per)\
**Post date:** [October 10, 2019, 2:56pm UTC](https://dmap-community.ductus.global/t/yang-actionpoint-grouping-annotate/2700/2 "2019-10-10T14:56:41Z")

</div>

> [@Ramakrishnan](#):
>
> Please look at the above files and provide some insight on how I can add actionpoint in my annotate file. Added comments in the Yang file on what is working/not-working.

Well, for starters, please describe _how_ it doesn’t work. Do you get an error message? If so, what does it say?
