[Spce-user] Feature request: options reply with 503 during maintenance mode

Alex Lutay alutay at sipwise.com
Wed Feb 27 07:43:57 EST 2019


The documentation has been recently updated to highlight patchtt:
> https://www.sipwise.org/doc/mr7.1.1/spce/?_href=ar01s11.html#patchtt_howto

The functionality is there since ~mr6.2

Also 'man ngcpcfg' contains:

>   Customisation for default template files
> The better way is to handle modifications using patchtt files
> (e.g. /etc/ngcp-config/templates/etc/foobar/baz.patchtt.tt2). In this
> case, on every "ngcpcfg patch", patchtt file will be applied on top of
> the tt2 file and the result will be saved into the customtt file, which in the
> future will be used in a common way. "ngcpcfg patch" is the first step
> on "ngcpcfg build" that guarantees the latest upstream templates with
> the availability of the necessary local changes on every configuration apply.
> Important:
> If a suitable patchtt file is found for a template, then
> the ngcpcfg patch command will overwrite the corresponding customtt
> file, if any exists. You can find the old version of the customtt in
> ngcpcfg the git repository (if necessary).

>        patch [--help | --from-customtt [<cusomtt file(s)>] | <patchtt file(s)>]
>            Generate customtt files using default templates and patchtt files. Using patchtt files automates template updating and simplifies customtt management. You can perform initial migration from customtt to patchtt using
>            option --from-customtt, ngcpcfg will process all/requested customtt files and generate patchtt files as a difference between template and current customtt files. You should normally execute --from-customtt only once
>            during migration on patchtt.

Have fun!

On 2/26/19 1:04 PM, Mark van Herpen wrote:
> I'm not aware of a patchtt-feature. This sounds like the way to go. Is
> this documented somewhere? Can't find in in the handbook or in man ngcpcfg.

Alex Lutay

More information about the Spce-user mailing list