TT#141100 lib: Remove deprecated functions and methods

These have been around for enough time to leave admins room to switch to
the new alternatives. Time for cleanup.

Change-Id: I40a51c8107daf53a6d7fd24b5035bbc2aff77bb6
mr10.1
Guillem Jover 4 years ago
parent 589dedb674
commit a9afbc4164

@ -11,7 +11,6 @@ helper/tt2-process usr/share/ngcp-ngcpcfg/helper/
helper/validate-yml usr/share/ngcp-ngcpcfg/helper/
hooks/ usr/share/ngcp-ngcpcfg/
lib/get_* usr/lib/ngcp-ngcpcfg/
lib/has_* usr/lib/ngcp-ngcpcfg/
lib/set_* usr/lib/ngcp-ngcpcfg/
sbin/ngcp-network usr/sbin/
sbin/ngcp-network-validator usr/sbin/

@ -146,14 +146,6 @@ sub get_mgmt_node
return;
}
sub get_mgmt_name
{
my ($self) = shift;
warnings::warnif('deprecated', 'deprecated alias for get_mgmt_node()');
return $self->get_mgmt_node();
}
sub get_ssh_pub_key
{
my ($self, $key_type) = @_;
@ -244,11 +236,6 @@ $hostname.
Returns the NGCP management node shared name.
=item $mgmtname = $t->get_mgmt_name()
This function is a deprecated alias for $t->get_mgmt_node(). It will be
removed in the future.
=item $ssh_pub_keye = $t->get_ssh_pub_key($key_type)
Returns the SSH public key with $key_type ('rsa', 'ed25519', etc.) from

@ -1,13 +0,0 @@
[%
# vi: ft=tt2
# Returns the Debian release codename of the node calling this function.
#
# @return out The Debian release codename of the node calling this function.
# XXX: This is a deprecated alias for set_debian_info.
PROCESS '/usr/lib/ngcp-ngcpcfg/set_debian_info';
out = debian.codename;
-%]

@ -1,11 +0,0 @@
[%
# vi: ft=tt2
# Returns the (alphabetically) first ngcp_hostname of a node pair for a given host.
#
# @param argv.host The ngcp_hostname to get the first name for.
# @return out The alphabetically first name.
out = ngcp.get_firstname(argv.host);
-%]

@ -1,10 +0,0 @@
[%
# vi: ft=tt2
# Returns the hostname of the node calling this function.
#
# @return out The hostname of the node calling this function.
out = ngcp.get_hostname();
-%]

@ -1,8 +0,0 @@
[%
# vi: ft=tt2
# This is a deprecated alias for get_mgmt_node.
out = ngcp.get_mgmt_name();
-%]

@ -1,11 +0,0 @@
[%
# vi: ft=tt2
# Returns the NGCP type of the node calling this function.
#
# @return out The NGCP type, one of:
# spce, sppro, carrier
out = general.ngcp_type
-%]

@ -1,10 +0,0 @@
[%
# vi: ft=tt2
# Returns the nodename of the node calling this function.
#
# @return out The nodename of the node calling this function.
out = ngcp.get_nodename();
-%]

@ -1,11 +0,0 @@
[%
# vi: ft=tt2
# Returns the peer name of a given host.
#
# @param argv.host The hostname to get the peername for.
# @return out The peername.
out = ngcp.get_peername(argv.host);
-%]

@ -1,13 +0,0 @@
[%
# vi: ft=tt2
# Checks whether a given host has a given role.
#
# @param argv.host The hostname to check the role for.
# @param argv.role The role of the node to process, one of:
# proxy, lb, mgmt
# @return out 0 if false, 1 if true.
out = ngcp.has_role(argv.host, argv.role);
-%]
Loading…
Cancel
Save