Skip to content

Commit db226db

Browse files
committed
MT#64514 Remove instances support
Change-Id: Ie6b57d9c87e3e3ae0138cb298f1ffa851713ddab
1 parent 7c608b6 commit db226db

File tree

73 files changed

+22
-5189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+22
-5189
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ PERL_SCRIPTS = \
1212
helper/sync-db \
1313
helper/tt2-process \
1414
helper/validate-yml helper/fileformat_version \
15-
sbin/ngcp-instances-validator \
1615
sbin/ngcp-network \
1716
sbin/ngcp-network-validator \
1817
sbin/ngcp-sync-db-creds \
1918
sbin/ngcp-sync-db-grants \
2019
# EOL
2120
YAML_SCHEMAS = \
22-
schemas/instances.yml \
2321
schemas/sites.yml \
2422
# EOL
2523
RESULTS ?= results

debian/ngcp-ngcpcfg.install

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ helper/cat-yml usr/share/ngcp-ngcpcfg/helper/
77
helper/check-for-mysql usr/share/ngcp-ngcpcfg/helper/
88
helper/del-value usr/share/ngcp-ngcpcfg/helper/
99
helper/fileformat_version usr/share/ngcp-ngcpcfg/helper/
10-
helper/instance-info usr/share/ngcp-ngcpcfg/helper/
11-
helper/instances-info usr/share/ngcp-ngcpcfg/helper/
1210
helper/restore-permissions usr/share/ngcp-ngcpcfg/helper/
1311
helper/set-value usr/share/ngcp-ngcpcfg/helper/
1412
helper/sort-yml usr/share/ngcp-ngcpcfg/helper/
@@ -18,13 +16,11 @@ helper/validate-yml usr/share/ngcp-ngcpcfg/helper/
1816
hooks/ usr/share/ngcp-ngcpcfg/
1917
lib/get_* usr/lib/ngcp-ngcpcfg/
2018
lib/set_* usr/lib/ngcp-ngcpcfg/
21-
sbin/ngcp-instances-validator usr/sbin/
2219
sbin/ngcp-network usr/sbin/
2320
sbin/ngcp-network-validator usr/sbin/
2421
sbin/ngcp-sync-db-creds usr/sbin/
2522
sbin/ngcp-sync-db-grants usr/sbin/
2623
sbin/ngcpcfg usr/sbin/
27-
schemas/instances.yml usr/share/ngcp-ngcpcfg/schemas/
2824
schemas/sites.yml usr/share/ngcp-ngcpcfg/schemas/
2925
scripts/apply usr/share/ngcp-ngcpcfg/scripts/
3026
scripts/build usr/share/ngcp-ngcpcfg/scripts/

debian/rules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#export DH_VERBOSE = 1
66

77
SCRIPTS = \
8-
$(CURDIR)/usr/sbin/ngcp-instances-validator \
98
$(CURDIR)/usr/sbin/ngcp-network \
109
$(CURDIR)/usr/sbin/ngcp-network-validator \
1110
# EOL

docs/ngcpcfg.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ precedence to higher precedence):
114114
file, used by template-handler for generating /etc/foobar/baz. Configuration
115115
file is usually provided by a Debian package.
116116
117-
* _/etc/ngcp-config/templates/etc/foobar/baz.tt2.inst-$INSTANCE_NAME_: ngcp_instance specific
118-
template file. $INSTANCE_NAME in lowercase specified at instances part on network.yml.
119-
120117
* _/etc/ngcp-config/templates/etc/foobar/baz.tt2.$NGCP_NODENAME_: node specific
121118
template file. $NGCP_NODENAME is determined using the __ngcp-nodename__ program
122119
(being _spce_ for CE systems, and _spN_ where N is the index of the node in the
@@ -145,12 +142,6 @@ Note: This feature is available in High Availability setups only.
145142
template file, but configuration usually isn't provided by a Debian package and
146143
can be modified independently from any Debian package mechanism.
147144
148-
* _/etc/ngcp-config/templates/etc/foobar/baz.customtt.tt2.inst-$INSTANCE_NAME_:
149-
configuration file similar to
150-
_/etc/ngcp-config/templates/etc/foobar/baz.tt2.inst-$INSTANCE_NAME_ but it's guaranteed
151-
that the file won't be part of any Debian package mechanism. $INSTANCE_NAME in
152-
lowercase specified at instances part on network.yml.
153-
154145
* _/etc/ngcp-config/templates/etc/foobar/baz.customtt.tt2.$NGCP_NODENAME_: node
155146
specific template file.
156147
Regarding $NGCP_NODENAME the same as for _baz.tt2.$NGCP_NODE_NAME_
@@ -173,12 +164,10 @@ available in High Availability setups only.
173164
174165
[IMPORTANT]
175166
Configuration file precedence (highest to lowest):
176-
*.customtt.tt2.inst-$INSTANCE_NAME
177167
*.customtt.tt2.$NGCP_HOSTNAME
178168
*.customtt.tt2.$NGCP_PAIRNAME
179169
*.customtt.tt2.$NGCP_NODENAME
180170
*.customtt.tt2
181-
*.tt2.inst-$INSTANCE_NAME
182171
*.tt2.$NGCP_HOSTNAME
183172
*.tt2.$NGCP_PAIRNAME
184173
*.tt2.$NGCP_NODENAME
@@ -255,17 +244,6 @@ be executed under "bash $FILE", so you can use commands e.g. like
255244
"ngcp-service foobar restart" and any further shell scripting syntax inside
256245
the services files
257246
258-
NGCP instances
259-
~~~~~~~~~~~~~~
260-
261-
ngcp-templates package provides the *TEMPLATE_INSTANCES* file defining what are
262-
the supported templates for instances. Meaning that ngcpcfg will generate
263-
one additional output per instance following the specifications provide by the
264-
file.
265-
266-
ngcpcfg will generate that output with the template variable **instance_name** defined
267-
and the environment variable **INSTANCE_NAME** set for ngcpcfg.service scripts
268-
269247
Global Options
270248
--------------
271249

etc/ngcp-ngcpcfg/ngcpcfg.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ SERVICES_POOL_BASE="${NGCPCTL_MAIN}/templates"
3434
SITES_DIR="${NGCPCTL_MAIN}/sites"
3535
SITES_CONFIG="${NGCPCTL_MAIN}/sites.yml"
3636

37-
# location of instances info for templates
38-
TEMPLATE_INSTANCES="${NGCPCTL_MAIN}/instances.yml"
39-
4037
# timestamp format for console output
4138
TIME_FORMAT="+%F %T"
4239

helper/instance-info

Lines changed: 0 additions & 67 deletions
This file was deleted.

helper/instances-info

Lines changed: 0 additions & 195 deletions
This file was deleted.

helper/tt2-process

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ sub generate_iofiles {
256256

257257
# Support for PRO/CARRIER systems.
258258
my @tt2_hosts;
259-
# Support for instances, name in lowercase!!
260-
if (length $ENV{INSTANCE_NAME}) {
261-
push @tt2_hosts, ".inst-".lc $ENV{INSTANCE_NAME};
262-
}
263259
foreach my $name (qw(HOST_FILE PAIR_FILE NODE_FILE)) {
264260
push @tt2_hosts, $ENV{$name} if defined $ENV{$name};
265261
}

0 commit comments

Comments
 (0)