code: def network_get_primary_address(binding):
      '''
      Deprecated since Juju 2.3; use network_get()
  
      Retrieve the primary network address for a named binding
  
      :param binding: string. The name of a relation of extra-binding
      :return: string. The primary IP address for the named binding
      :raise: NotImplementedError if run on Juju < 2.0
      '''
      cmd = ['network-get', '--primary-address', binding]
      try:
          response = subprocess.check_output(
              cmd,
              stderr=subprocess.STDOUT).decode('UTF-8').strip()
      except CalledProcessError as e:
          if 'no network config found for binding' in e.output.decode('UTF-8'):
              raise NoNetworkBinding("No network binding for {}"
                                     .format(binding))
          else:
              raise
      return responsf network_get_primary_address(binding):
      '''
      Deprecated since Juju 2.3; use network_get()
  
      Retrieve the primary network address for a named binding
  
      :param binding: string. The name of a relation of extra-binding
      :return: string. The primary IP address for the named binding
      :raise: NotImplementedError if run on Juju < 2.0
      '''
      cmd = ['network-get', '--primary-address', binding]
      try:
          response = subprocess.check_output(
              cmd,
              stderr=subprocess.STDOUT).decode('UTF-8').strip()
      except CalledProcessError as e:
          if 'no network config found for binding' in e.output.decode('UTF-8'):
              raise NoNetworkBinding("No network binding for {}"
                                     .format(binding))
          else:
              raise
      return response
docs: Deprecated since Juju 2.3; use network_get()
  
      Retrieve the primary network address for a named binding
  
      :param binding: string. The name of a relation of extra-binding
      :return: string. The primary IP address for the named binding
      :raise: NotImplementedError if run on Juju < 2.0